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
Post a Comment