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