19 lines
572 B
ApacheConf
19 lines
572 B
ApacheConf
![]() |
Options FollowSymLinks
|
||
|
|
||
|
# 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/
|
||
|
|
||
|
# Rewrite URLs of the form 'index.php?page=x':
|
||
|
RewriteCond %{REQUEST_URI} !^/(images|pages|styles)/
|
||
|
RewriteCond %{REQUEST_URI} !^/favicon\.ico
|
||
|
RewriteCond %{REQUEST_URI} !^/robots\.txt
|
||
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||
|
RewriteRule ^(.*)$ index.php?page=$1 [L,QSA]
|
||
|
</IfModule>
|