change url in .htaccess
I am a newbie with url rewritting in .htaccess.
I have an online store in prestashop. I want to change the url www.myshop/module/stblog/something.html to www.myshop/blog/something.html. I mean, to change /module/stblog/ to /blog/.
I do not know how to do it. Please help!!!
Thank you very much!
Please put this in your .htaccess
RewriteRule ^blog/something.html$ module/stblog/something.html [R=301,L]
You can use this code , only put it in your .htaccess if you want redirect a folder
RewriteRule ^blog/?$ /module/stblog/?something.html [R,L]
Here's a .htaccess file I use that should work:
RewriteRule ^([a-zA-Z0-9\-.]*)$ /?url=$1 [L]
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)