.htaccess - Using htaccess to change the name of a folder -
I know that this is a simple answer but I can not find a specific solution to this problem. I have seen how to use htaccess to mount a folder as root, so domain.com/folder appears as domain.com in a browser. But what should I do if I want to show domain.com/folder as domain.com/differentfolder? You can use this code in your DOCUMENT_ROOT / .htaccess
file Are:
RewriteRuleRewriteRule ^ differentfolder (/.*)?$ / folder $ 1 [L, NC]
Comments
Post a Comment