SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
Thread: URL Rewriting .htaccess
-
Jul 5, 2007, 05:10 #1
- Join Date
- May 2006
- Posts
- 22
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
URL Rewriting .htaccess
HI friends,
I have a problem with the rewrite URL in oscommerce part.
As of now, cart is working fine with the url below and corresponding .htaccess contents.
http://www.mysite.com/shirt-long-sleeves-c-1_80_82.php
.htaccess content:
RewriteRule ^(.*)-c-(.*).php$ index.php?cPath=$2&%{QUERY_STRING}
But i need to modify this url to be like this...
http://www.mysite.com/shirt/long-sleeves-1_80_82.php
can anyone suggest how to make the htaccess for this?
thanks in advance.
-
Jul 5, 2007, 05:44 #2
- Join Date
- Aug 2004
- Location
- Manchester UK
- Posts
- 13,807
- Mentioned
- 158 Post(s)
- Tagged
- 3 Thread(s)
I think its just:
Code:RewriteRule ^shirt/(.*)-c-(.*).php$ index.php?cPath=$2&%{QUERY_STRING}
Code:RewriteRule ^shirt/([a-zA-Z0-9_]+)-c-([a-zA-Z0-9_]+).php$ index.php?cPath=$2&%{QUERY_STRING}
Mike Swiffin - Community Team Advisor
Only a woman can read between the lines of a one word answer.....
Bookmarks