url - Apache Redirect help -


i newbie in department.i have following folder structure root root\html root\html\html

the root\html\html has our old website bunch of pages in .html form. \html has our new website .htm extension

i want have .htaccess in root/html/html call file.html root/html/file.htm

so www.example.com/html/file.html become www.example.com/file.htm

i think this:

rewriterule ^/html/(.*)\.html$ /$1.htm [r] 

should want.

if don't want redirect (if don't want address in browser's address bar change) take [r] out.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -