2010-12-20 15:41:01 +00:00
|
|
|
# Custom error pages for php scripts only
|
|
|
|
<FilesMatch \.php$>
|
|
|
|
ErrorDocument 400 /error.php?400
|
|
|
|
ErrorDocument 401 /error.php?401
|
|
|
|
ErrorDocument 403 /error.php?403
|
|
|
|
ErrorDocument 404 /error.php?404
|
|
|
|
ErrorDocument 500 /error.php?500
|
|
|
|
</FilesMatch>
|
|
|
|
|
2008-12-03 20:57:22 +00:00
|
|
|
<IfModule mod_rewrite.c>
|
2009-09-13 16:37:18 +00:00
|
|
|
### enable rewrites
|
|
|
|
Options +FollowSymLinks
|
|
|
|
RewriteEngine On
|
2008-12-02 23:44:19 +00:00
|
|
|
|
2009-09-14 18:22:16 +00:00
|
|
|
### Set this to your e107 site root, path relative to web root
|
2009-09-13 16:37:18 +00:00
|
|
|
RewriteBase /
|
2008-12-02 23:44:19 +00:00
|
|
|
|
2009-09-13 16:37:18 +00:00
|
|
|
### send 404 on missing files in these folders
|
|
|
|
RewriteCond %{REQUEST_URI} !^/(e107_images|e107_files)/
|
|
|
|
|
|
|
|
### don't rewrite for existing files, directories and links
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-l
|
|
|
|
|
2011-11-25 17:58:03 +00:00
|
|
|
### Single entry point ###
|
|
|
|
RewriteRule .* rewrite.php [L]
|
2009-09-13 16:37:18 +00:00
|
|
|
|
2008-12-03 20:57:22 +00:00
|
|
|
</IfModule>
|