Forums / National / Russian / Тех. поддержка / ЧПУ для страницы с несколькими вспомогательными параметрами

Yusupov
#33854 2012-04-10 05:11
#33853 esclkm:

а что в 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
37
38
39
################ Cotonti Handy URLs for Apache #######################
 
# Below are the rules to be included in your main .htaccess file or httpd.conf
 
# Rewrite engine options
Options -Indexes
RewriteEngine On
 
# Server-relative path to Cotonti. Replace it with your path if you run Cotonti
# in a subfolder
RewriteBase "/"
 
# Language selector
RewriteRule ^(en|ru|de|nl)/(.*) $2?l=$1 [QSA,NC,NE]
 
# Admin area and message are special scripts
RewriteRule ^admin/([a-z0-9]+) admin.php?m=$1 [QSA,NC,NE,L]
RewriteRule ^(admin|login|message)(/|\?|$) $1.php [QSA,NC,NE,L]
 
# System category has priority over /system folder
RewriteRule ^system/?$  index.php?rwr=system [QSA,NC,NE,L]
 
# All the rest goes through standard rewrite gateway
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^?]+) index.php?rwr=$1 [QSA,NC,NE,L]
### COTONTI URLTRANS ###
# Rewrite engine options
Options FollowSymLinks -Indexes
RewriteEngine On
# Server-relative path to Cotonti:
RewriteBase "/"
RewriteRule ^(datas|images|js|themes)/(.*)$ $1/$2 [QSA,NC,NE,L]
RewriteRule ^([^/&?#]+)/([^/&?#]+)/([^/&?#]+)/([^/&?#]+)/([^/&?#]+)(.*)$ page.php?c=$1&mark=$2&model=$3&al=$4&sa=$5$6 [QSA,NC,NE,L]
RewriteRule ^([^/&?#]+)/([^/&?#]+)/([^/&?#]+)/([^/&?#]+)(.*)$ page.php?c=$1&mark=$2&model=$3&al=$4$5 [QSA,NC,NE,L]
 
### COTONTI URLTRANS ###
 
### COTONTI URLTRANS ###

 

This post was edited by Yusupov (2012-04-10 05:24, 13 years ago)