DokuWiki

It's better when it's simple

User Tools

Site Tools


tips:htmlonly
no way to compare when less than two revisions

Differences

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


tips:htmlonly [2005-10-05 09:55] (current) – created - external edit 127.0.0.1
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 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