DokuWiki

It's better when it's simple

User Tools

Site Tools


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 by 127.0.0.1

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki