Results 1 to 7 of 7
Thread: .htaccess RewriteRule
Hybrid View
-
9th May 2011 22:06 #1
.htaccess RewriteRule
,
, .
:
:
www.<URL>.eu/catalog.php?cat=3
, :
www.<URL>.eu/catalog/category/3
.htaccess, , . http://<URL>.eu http://www.<URL>.eu
, .
, .
.Code:<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_HOST} ^<URL>\.eu [nc] RewriteRule (.*) http://www.<URL>.eu/$1 [R=301,L] RewriteRule ^category/([a-zA-Z0-9\-]+)/([0-9]+) /catalog.php?cat=$3 [nc] </IfModule>
-
9th May 2011 23:25 #2
:

:
:Code:RewriteRule catalog/(.*)/(.*)/$ /catalog.php?$1=$2
{domain}/catalog.php?category=3
==
{domain}/catalog/category/3
"category".
-
12th May 2011 09:25 #3
-
12th May 2011 11:32 #4
, category=3, item=5:
- , category , , , .Code:RewriteRule ^catalog/([a-zA-Z0-9_\-]+)/([0-9]+)/$ catalog.php?$1=$2
my-Category_345
catalog.php?category=3 => catalog/category/3
catalog.php?cat=3 => catalog/cat/3
catalog.php?item=5 => catalog.php/item/5
, category, :
Code:RewriteRule ^catalog/category/([0-9]+)/$ catalog.php?cat=$1
FX-8350 | X4 965 | X6 1090T | X2 555 | Athlon II X2 250 | Sempron 145 | i5 2500K | i7 3770K | DDR-881
XOCT Bulgaria | B4K Enhanced | Shure SRH1540 & SHR840 | Audioengine D1 + Mackie MR624
-
12th May 2011 17:53 #5Registered User
Join Date: Jul:2005
Location: Sofiq
Posts: 2,798
:
:Code:RewriteRule ^catalog/([^/\.\?]+)/([^/\.\?]+)/?$ catalog.php?$1=$2
catalog/cat/cat_key/ -> catalog.php?cat=cat_key
catalog/cat/cat_key -> catalog.php?cat=cat_key
id- url-.
-
17th May 2011 09:19 #6
-
17th May 2011 14:54 #7




Reply With Quote

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