php - htaccess folder rewrite and show index from folder -


i want rewrite url: http://domain.com/administration domain.com/admin

but index.html of subdirectory not available when use http://domain.com/admin/

how can fix that?

this htaccess:

rewriteengine on rewriterule ^([^\.]+)$ $1.php [nc,l] rewriterule ^admin/(.*) administration/$1.php 

try these. need external admin work expect.

# fix missing trailing / on admin rewriterule ^admin$ /admin/ [ns,l,r=301] # change admin dir rewriterule ^admin/(.*) administration/$1 [ns,dpi] # load that's not directory php rewriterule ^(?>[^.]+)(?<!/)$ $0.php [ns,l] 

Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -