i'm trying write rewrite rule redirect files in new webhelp system (it's stand alone website). have 2 things try take account - want redirect files in http://www.mydomain.com/webhelp folder. need change .html in end .htm... manage find each rule matching http://www.mydomain.com/webhelp, when try rewrite cond breaks...
basically, http://www.mydomain.com/webhelp/hello.html http://www.mydomain.com/webhelp/hello.htm without changing http://www.mydomain.com/index.html
would appreciate help. thanks!
if put following in .htaccess
file in webhelp
folder, should achieve you're looking for:
rewriteengine on rewritebase /webhelp/ rewriterule ^(.*).html$ $1.htm [r=301,l]
Comments
Post a Comment