Results 1 to 10 of 10
Thread: RewriteRule
Hybrid View
-
17th February 2013 19:12 #1Registered User
Join Date: Feb:2013
Location: Slivnica
Posts: 5
RewriteRule
!
: page.php?a=var1&b=var2
, mod_rewrite , :
domain.com/page/a/var1/b/var2
, .
.
-
17th February 2013 22:12 #2
RewriteRule ^page/a/([^/]+)/b/([^/]+)$ page.php?a=$1&b=$2 [QSA,L]
. . regular expressions - , match- URL-, , , - page.php , $1 "" ( /), $2 . .. GET , "" -.
-. .
mod_rewrite.
-
17th February 2013 22:31 #3Registered User
Join Date: Feb:2013
Location: Slivnica
Posts: 5
:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^domain\.com
RewriteRule ^(.*)$ http://www .domain.com/ [R=301,NC]
RewriteRule ^page/a/(.*)/b/(.*)$ page?a=$1&b=$2 [QSA,L]
, .
-
17th February 2013 23:41 #4
".php"
RewriteRule ^page/a/(.*)/b/(.*)$ page.php?a=$1&b=$2 [QSA,L]
tedych -.
page.php ?
-
17th February 2013 23:54 #5Registered User
Join Date: Feb:2013
Location: Slivnica
Posts: 5
".php" .
.
(), .
.
RewriteRule ^page/a/(.*)/b/(.*)$ page.php?a=$1&b=$2 [QSA,L]
tedych, .Last edited by Quicksand; 18th February 2013 at 00:09.
-
18th February 2013 00:46 #6
-
18th February 2013 01:19 #7Registered User
Join Date: Feb:2013
Location: Slivnica
Posts: 5
www .
. RewriteCond . . .
-
18th February 2013 01:33 #8
L :
RewriteRule ^(.*)$ http://www.domain.com/ [R=301,NC,L]
htaccess.
RewriteRule ^(.*)$ page.php?test=$1 [QSA,L]
test GET .
, .
domain.com ? . , . root-a , ..




Reply With Quote
Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in