Mobile app version of vmapp.org
Login or Join
Murray432

: Mod_rewrite change . (dot) to - (hyphen) I'm moving my site and the URL structure has changed because of the new CMS. The old URLs are similar to /my.products.htm, but on the new site we

@Murray432

Posted in: #301Redirect #ModRewrite #Url #UrlRewriting

I'm moving my site and the URL structure has changed because of the new CMS. The old URLs are similar to /my.products.htm, but on the new site we are changing the URLs to /my-products.

Is there a way to redirect all the products to this new URL scheme using a mod_rewrite 301 redirect? Or is there another method I could use? The old site ran PHP the new one runs on Netsuite if that helps.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Murray432

1 Comments

Sorted by latest first Latest Oldest Best

 

@Murray432

Add this to the .htaccess file in your root directory

RewriteRule ^([A-Za-z0-9]+).([A-Za-z0-9]+).htm$ www.example.com/- [R=301]

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme