switching from miva - redirecting all URLs

General ShopSite user discussion

switching from miva - redirecting all URLs

Postby Rodney » Wed Jul 27, 2005 3:03 pm

I've done most of the conversion, I just need to add an .htaccess redirect
so that all of the old catalog pages that are indexed in the search engines
point to the new catalog pages.
Since Miva sometimes adds many variables, I'm not sure how to create an
htaccess file that encompasses all the ways that miva links to products.

Here's a sample line from my htaccess:

# Send a redirect from our old file to our new file

redirect permanent
h*tp://www.widget-fake-url.com/merchant.mv?Screen=PROD&Store_Code=GOESHERE&Product_Code=PRODUCT01
h*tp://www.widget-fake-url.com/store/product01.html

The problem comes when sometimes Miva interally links to a product, it
sometimes adds a &Category_Code=cat01 to the product URL.

So the another URL for the same product above would be:
h*tp://www.widget-fake-url.com/merchant.mv?Screen=PROD&Store_Code=GOESHERE&Product_Code=PRODUCT01&Category_Code=cat01

What is the best way to redirect each URL so it goes to the appropriate
shopsite moreinfo page?

Thanks,

Rodney
Rodney
 

Re: switching from miva - redirecting all URLs

Postby loren_d_c » Wed Jul 27, 2005 3:39 pm

I don't know what the correct redirect directives would be for a URL
that complicated. To me, seems like the easiest thing to do might be to
make a simple script called merchant.mv to replace the miva script and
within that script redirect to the appropriate new page based on the
Product_Code variable provided.

-Loren



Rodney wrote:
I've done most of the conversion, I just need to add an .htaccess redirect
so that all of the old catalog pages that are indexed in the search engines
point to the new catalog pages.
Since Miva sometimes adds many variables, I'm not sure how to create an
htaccess file that encompasses all the ways that miva links to products.

Here's a sample line from my htaccess:

# Send a redirect from our old file to our new file

redirect permanent
h*tp://www.widget-fake-url.com/merchant.mv?Screen=PROD&Store_Code=GOESHERE&Product_Code=PRODUCT01
h*tp://www.widget-fake-url.com/store/product01.html

The problem comes when sometimes Miva interally links to a product, it
sometimes adds a &Category_Code=cat01 to the product URL.

So the another URL for the same product above would be:
h*tp://www.widget-fake-url.com/merchant.mv?Screen=PROD&Store_Code=GOESHERE&Product_Code=PRODUCT01&Category_Code=cat01

What is the best way to redirect each URL so it goes to the appropriate
shopsite moreinfo page?

Thanks,

Rodney



loren_d_c
 
Posts: 2570
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere


Return to User Forum

Who is online

Users browsing this forum: Google [Bot] and 70 guests