.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

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -