So I’m wondering how you do this with .htaccess. I have a URL that is www.websites.com/seo_packages.htm
and I’d like www.websites.com/seo-packages
to be what they type to get to the previous URL. I’ve done it as a 301 redirect, however it doesn’t retain the masking of /seo-packages
. What’s the best way to retain the masking?
2
Answers
I’m not sure what you mean by “retain the masking”, but you could create a file
www.websites.com/seo-packages/index.html
with the following content:This will automatically redirect visitors to the new URL.
You just need a single rule in your site root .htaccess:
Make sure to clear your browser cache when testing it.