html - .htaccess redirect to subfolder -
i'm struggling solution redirecting pages (or .html pages) subfolder , keep .html file name.
i have .html site lot of subfolders , redirect traffic same subfolder - /download/file-name.html
for example site is: www.mydomain.com/subfolder1/some-file-name.html
redirected www.mydomain.com/download/some-file-name.html
www.mydomain.com/subfolder2/another-file-name.html
redirected www.mydomain.com/download/another-file-name.html
ps. dont want "old subfolder" appears after
/download/...`
thank you!
paste notepad file:
rewriteengine on rewriterule ^$ www.mydomain.com/download/some-file-name.html [l]
save [space].htaccess
within www.mydomain.com/subfolder1/
.
this should help.
Comments
Post a Comment