-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
33 lines (24 loc) · 843 Bytes
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Options -Indexes
# BEGIN FerretCMS
<IfModule mod_rewrite.c>
Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /
#400 REDIRECT
ErrorDocument 400 http://ferretcms.localhost/index.php?p=SYS_400
#401 REDIRECT
ErrorDocument 401 http://ferretcms.localhost/index.php?p=SYS_401
#403 REDIRECT
ErrorDocument 403 http://ferretcms.localhost/index.php?p=SYS_403
#404 REDIRECT
ErrorDocument 404 http://ferretcms.localhost/index.php?p=SYS_404
#500REDIRECT
ErrorDocument 500 http://ferretcms.localhost/index.php?p=SYS_500
# Removes index.php from ExpressionEngine URLs
RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule page/(.*)/$ index.php?p=$1
RewriteRule page/(.*)/article/(.*)$ index.php?p=$1&c=$2 [NC,L]
</IfModule>
# END FerretCMS