DokuWiki

It's better when it's simple

User Tools

Site Tools


tips:htmlonly

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

tips:htmlonly [2005-10-05 09:55] (current)
Line 1: Line 1:
 +
 +If you want to see html only content use this htaccess rules:
 +<code>
 +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
 +</code>
 +
 +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)