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

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -