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?
SEO Class in Chicago, IL
Learn How To Optimize Your Website on July 26, 2013
Looking for personalized in-depth SEO training among your peers?
High Rankings is offering a 1-day customized SEO training class in Chicago. Class size is limited so please sign-up now if you want in!
Are you a Google Analytics enthusiast?
Share and download Custom Google Analytics Reports, dashboards and advanced segments--for FREE!

www.CustomReportSharing.com
From the folks who brought you High Rankings!
More SEO Content
International SEM | Social Media | Search Friendly Design | SEO | Paid Search / PPC | Seminars | Forum Threads | Q&A | Copywriting | Keyword Research | Web Analytics / Conversions | Blogging | Dynamic Sites | Linking | SEO Services | Site Architecture | Search Engine Spam | Wrap-ups | Business Issues | HRA Questions | Online Courses
Redirect From Directory To Root + Parameter Url Treatment
Started by
buster13
, Jun 08 2011 04:54 AM
1 reply to this topic
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users









