DokuWiki

It's better when it's simple

User Tools

Site Tools


Sidebar

Translations of this page?:

Learn about DokuWiki

Advanced Use

Corporate Use

Our Community


Follow us on Facebook, Twitter and other social networks.

tips:htmlonly

If you want to see html only content use this htaccess rules:

RewriteEngine on
RewriteCond %{REMOTE_ADDR}            x.x.x.x
RewriteRule ^$                        doku.php  [L]
RewriteRule ^$                        doku.php?do=export_html  [L]

RewriteCond %{REQUEST_FILENAME}       !-f
RewriteCond %{REQUEST_FILENAME}       !-d
RewriteCond %{REMOTE_ADDR}            !x.x.x.x
RewriteRule (.*)                      doku.php?do=export_html&id=$1  [QSA,L]
RewriteRule ^index.php$               doku.php?do=export_html

RewriteCond %{REQUEST_FILENAME}       !-f
RewriteCond %{REQUEST_FILENAME}       !-d
RewriteCond %{REMOTE_ADDR}            x.x.x.x
RewriteRule (.*)                      doku.php?id=$1  [QSA,L]
RewriteRule ^index.php$               doku.php

For everybody will be html view, and for ip address x.x.x.x default view

tips/htmlonly.txt · Last modified: 2005-10-05 09:55 (external edit)