: 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
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.
More posts by @Murray432
1 Comments
Sorted by latest first Latest Oldest Best
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]
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.