1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-27 09:50:49 +02:00
Files
php-e107/e107.htaccess

33 lines
1010 B
Plaintext

<IfModule mod_rewrite.c>
### enable rewrites
Options +FollowSymLinks
RewriteEngine On
### Set this to your e107 site 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
### NEWS SEF URLs - set 'news' to the 'URL identifier' value (news Administration area) ###
RewriteRule ^news/(.*)$ news.php?rewrite=$1 [L]
### REMOVE ###
RewriteRule ^news/?$ news.php
#item, default, cat actions
#RewriteRule ^news/([a-z]+)-([0-9]+)-([0-9]+)(\.html)?$ news.php?$1.$2.$3 [L]
#extend, cat, list actions
#RewriteRule ^news/([a-z]+)-([0-9]+)(\.html)?$ news.php?$1.$2 [L]
### REMOVE END ###
</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