.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

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -