Announcement

Collapse
No announcement yet.

URL Rewrites

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    URL Rewrites

    OK, so we have a client that has their URL's set up like this........

    http://www.example.com/CATCODE/PRODCODE/Product Name With Odd Characters.html

    The goal here is to use a rewrite rule that simply strips everything after the PRODCODE/, leaving it as.....

    http://www.example.com/CATCODE/PRODCODE/, but for the life of me I can't get the rule right.

    Does anyone out here in forum land now a simple way via .htaccess to simply strip the 3rd item (aka the product name) off of this URL globally? Just make the whole productname.html go bye-bye?
    Ted Hust
    AarcMediaGroup.com

    Celebrating 13 Years of Outstanding Service & Support
    Miva Merchant Design

    #2
    Re: URL Rewrites

    Ted,

    I haven't done one of these under Miva PR9, but there used to be a "pc" item which rendered both the product and category codes, viz:

    RewriteCond %{REQUEST_URI} ^/pc/(.*)/(.*) [NC]
    RewriteRule (.*) /mm5/merchant.mvc?Screen=PROD&Product_Code=%1&Category_ Code=%2 [L]

    Also, look at how Miva creates the rewrite for Breadcrumbs in PR9 - this seems to accomplish what you want. Unfortunately I am travelling at the moment so I can't check a htaccess file to allow me to give you the exact code.

    Pete

    Comment

    Working...
    X