-
Notifications
You must be signed in to change notification settings - Fork 1
/
.htaccess
36 lines (26 loc) · 900 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
33
34
35
36
Options +FollowSymLinks
RewriteEngine On
#RewriteBase /
#
# ERROR DOCUMENTS - define their if you want
#
# ErrorDocument 404 /my-error-page.html
# ErrorDocument 401 /my-error-page.html
# ErrorDocument 403 /my-error-page.html
# ErrorDocument 500 /my-error-page.html
# ErrorDocument 400 /my-error-page.html
#
# Sefrengo numeric rewrite
#
#cats
RewriteRule ^cat([0-9][0-9]*)-([1-9][0-9]?)\.html(&.*)? index.php?lang=$2&idcat=$1&$3 [QSA,L]
RewriteRule ^cat([1-9][0-9]*)\.html(&.*)? index.php?idcat=$1&$2 [QSA,L]
#pages
RewriteRule ^page([1-9][0-9]*)-([1-9][0-9]?)\.html(&.*)? index.php?lang=$2&idcatside=$1$3 [QSA,L]
RewriteRule ^page([1-9][0-9]*)\.html(&.*)? index.php?idcatside=$1$2 [QSA,L]
#
# Sefrengo 'spoken url support' rewrite
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?sf_rewrite=$1 [L,QSA]