Currently i have 100+ URLs on my site in this format:
http://www.example.in/view_retailer/homepage
I want to remove /view_retailer/ from all URLs, so they should look something like this
http://www.example.in/homepage
In other words I would have to always remove /view_retailer/ from the url.
In order to do so, I had created file with .htaccess on root directory of website
And writen the following line of code:
RewriteEngine On
RewriteRule ^view_retailer/(.*)$ /$1 [L,R=301]
Adding the R will change the url to appear like the new version in your address bar
0 Comment(s)