Forum Moderators: phranque

Message Too Old, No Replies

Rewriting & Redirecting Dynamic Miva Merchant URL's to static urls

Rewriting & Redirecting Dynamic Miva Merchant URL's to static urls

         

ChildeRoland

7:40 pm on Jun 3, 2008 (gmt 0)

10+ Year Member



I've been battling for over a year trying to figure out how to both rewrite and 301 redirect Miva Merchant's horrible dynamic url's to more seo friendly URL's with no luck. I don't understand apache enough to do it myself and any help would be appreciated.

Here's what I'm trying to do:

I'd like to ditch the dynamic category page and product page URL's for a very simple static URL.

Category Page url NOW:
http://www.example.com/mm5/merchant.mvc?Screen=CTGY&Store_Code=B&Category_code=MV

Category Page url SHOULD BE:
http://www.example.com/mv.html

Product Page url NOW:
http://www.example.com/mm5/merchant.mvc?Screen=PROD&Store_Code=B&Product_Code=056&Category_Code=MV

Product Page url SHOULD BE:
http://www.example.com/056.html

Any ideas?

ALTERNATIVELY:
If that's too time consuming for someone to figure out FOR FREE (I understand).

I already know how to modrewrite the URL's, but the problem is I couldn't figure out how to 301 redirect the old dynamic URL's to the new SEO friendly URL's so as a bail out, if you could just show me the method of 301 redirecting these, that would work as well.

I'm dumb when it comes to this.

[edited by: encyclo at 1:03 am (utc) on June 4, 2008]
[edit reason] please use example.com [/edit]

jdMorgan

8:34 pm on Jun 3, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What is the specific problem you're having redirecting dynamic URLs?

Have you looked into the "RewriteCond %{QUERY_STRING}" construct to check and create back-references to query name/values?

Jim

ChildeRoland

9:06 pm on Jun 3, 2008 (gmt 0)

10+ Year Member



I so dumb, I don't even know what you just said. That's the problem.

wilderness

9:43 pm on Jun 3, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



This search [google.com] may help