.htaccess - i want htaccess grammer to hide php extension -
i have folder e:\wamp\www\world_appeal admin panel e:\wamp\www\world_appeal\admin
i want ht-access grammar hide php extension files of front , admi panel well.
please give me idea.
every effort appreciated.
place these 2 rules first rule in /world_appeal/.htaccess
:
rewriteengine on rewritebase /world_appeal/ rewritecond %{the_request} /world_appeal/(.+?)\.php[\s?] [nc] rewriterule ^ %1 [r=301,l,ne] rewritecond %{request_filename} !-d rewritecond %{document_root}/world_appeal/$1.php -f rewriterule ^(.+?)/?$ $1.php [l]
Comments
Post a Comment