Files
i2p.www/.htaccess

23 lines
715 B
ApacheConf
Raw Normal View History

Options FollowSymLinks Indexes
2004-07-06 20:39:18 +00:00
# Various rewrite rules
<IfModule mod_rewrite.c>
RewriteEngine on
# Modify the RewriteBase if you are using this in a subdirectory and the
# rewrite rules are not working properly:
# RewriteBase /i2p-www/site/
# For fixing old /redesign URLs
RewriteRule ^redesign(/(.*))? /$2 [redirect=302,last]
2004-07-06 20:39:18 +00:00
# Rewrite URLs of the form 'index.php?page=x':
RewriteCond %{REQUEST_URI} !^/(images|pages|styles|i2pdb)/
2004-07-06 20:39:18 +00:00
RewriteCond %{REQUEST_URI} !^/favicon\.ico
RewriteCond %{REQUEST_URI} !^/robots\.txt
RewriteCond %{REQUEST_URI} !^/i2pdb
2004-07-06 20:39:18 +00:00
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?page=$1 [L,QSA]
</IfModule>