- Total Members: 263,826
- Threads: 454,060
- Posts: 1,062,620
Great community. Great ideas.
Welcome to SEOChat, a community dedicated to helping beginners and professionals alike in improving their Search Engine Optimization knowledge. Sign up today to gain access to the combined insight of tens of thousands of members.
-
Jun 8th, 2011, 05:03 AM
#1
Redirect from directory to Root + parameter URL treatment
I have to redirect my shopping cart directory to Root now.
example.com/shopcart/mens/t-shirts/
to be redirected to Root now
example.com/mens/t-shirts/
/mens/t-shirts/ => index.php?c=13
My solution is like this and it works,
RedirectMatch 301 /shop/(.*) /$1
RewriteRule ^mens/t-shirts/$ index.php?c=13 [L]
Final URL: example.com/mens/t-shirts/ which backend loads example.com/index.php?c=13
May I ask if these 2 sentences is the MOST efficient way?
Is there a way to combine into 1 line of coding instead of 2?
Similar Threads
-
By MagicDaddy in forum Google Optimization
Replies: 25
Last Post: Oct 15th, 2004, 11:28 AM
-
By ChillnVilln in forum Web Design, Coding and Programming
Replies: 4
Last Post: Aug 31st, 2004, 10:57 AM
-
By JoeBob in forum Google Optimization
Replies: 4
Last Post: Jan 16th, 2004, 01:48 PM
-
By dvs007 in forum Google Optimization
Replies: 13
Last Post: Oct 3rd, 2003, 11:01 AM
-
By adairk in forum Public Site Reviews
Replies: 9
Last Post: May 31st, 2003, 04:30 AM