mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
39 lines
1.3 KiB
Plaintext
39 lines
1.3 KiB
Plaintext
<IfModule mod_rewrite.c>
|
|
### enable rewrites
|
|
Options +FollowSymLinks
|
|
RewriteEngine On
|
|
|
|
### Set this to your e107 site root, path relative to web root
|
|
RewriteBase /
|
|
|
|
### 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
|
|
|
|
### TAGWORDS ###
|
|
RewriteRule ^tagwords/?(.*)$ e107_plugins/tagwords/tagwords.php?q=$1 [L]
|
|
|
|
### NEWS SEF URLs - set 'news' to the 'URL identifier' value (news Administration area) ###
|
|
RewriteRule ^news/?$ news.php [L]
|
|
RewriteRule ^news/(.*)$ news.php?rewrite=$1 [L]
|
|
|
|
## 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]
|
|
|
|
|
|
</IfModule>
|
|
|
|
#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 |