Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-08-2012, 03:57 PM   PM User | #1
SouthWind
New to the CF scene

 
Join Date: Mar 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
SouthWind is an unknown quantity at this point
URL Rewrite & 301 redirect possible?

I moved my ecommerce site to a new directory and cart software. Old product URL's were dynamic and formatted like this:
mydomain.com/webstore/ecom.php?store=mystore&action=display&target=ABC+123456

Where ABC+123456 is a unique product identifier. The new URL uses the same identifier, but in a different format and with a trailing.html:

mydomain.com/store/abc-123456.html

So I'm pretty lost with htaccess and using mod_rewrite, but is it possible to take a link like the first one and rewrite & redirect it to the second one using only mod_rewrite and the htaccess file? There is 60,000 + such urls, so it's not possible to create separate entries for each product. I'm open to suggestions regarding the best way to redirect these urls.
Thank you
SouthWind is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:29 PM.


Advertisement
Log in to turn off these ads.