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
|
|
|
|
|
2009-09-25 20:20:23 +00:00
|
|
|
### TAGWORDS ###
|
|
|
|
RewriteRule ^tagwords/?(.*)$ e107_plugins/tagwords/tagwords.php?q=$1 [L]
|
|
|
|
|
2009-09-13 16:37:18 +00:00
|
|
|
### NEWS SEF URLs - set 'news' to the 'URL identifier' value (news Administration area) ###
|
2009-09-14 18:22:16 +00:00
|
|
|
RewriteRule ^news/?$ news.php [L]
|
2009-09-13 16:37:18 +00:00
|
|
|
RewriteRule ^news/(.*)$ news.php?rewrite=$1 [L]
|
2009-09-14 18:22:16 +00:00
|
|
|
|
|
|
|
## Use this on your own risk.
|
|
|
|
## Quick & dirty solution for news rewrite without (empty) 'URL identifier',
|
|
|
|
## extremely useful for blog site owners
|
|
|
|
## Keep in mind it should be your last RewriteRule!
|
|
|
|
## You also might want to change your Front page (administration) to your site root, e.g. '/'
|
|
|
|
#DirectoryIndex news.php index.php index.html
|
|
|
|
#RewriteRule ^(.*)$ news.php?rewrite=$1 [L]
|
|
|
|
|
2009-09-13 16:37:18 +00:00
|
|
|
|
2008-12-03 20:57:22 +00:00
|
|
|
</IfModule>
|
2008-12-02 23:44:19 +00:00
|
|
|
|
|
|
|
#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
|