remove .php extension with .htaccess for subdomains? -
i'm not expert @ url-rewrites.
my domain helloboy.
my subdomains www , labs.
i remove .php extension subdomain labs and directory graph?
from: http://labs.helloboy.com/graph/load/show.php
to: http://labs.helloboy.com/graph/load/show/
how can that?
here code .htaccess:
rewriteengine on rewritebase / rewritecond %{http_host} ^labs\.helloboy\.com$ /$1.php -f rewriterule ^(graph/load/.*?)/?$ $1.php [l,nc]
maybe help:
rewritecond %{http_host} labs.helloboy.com$ rewriterule ^graph/(.*)/?$ graph/$1.php [l,nc] php .htaccess url-rewriting
No comments:
Post a Comment