I am using URL Rewriting in my page for remove .php in the url. my page is http://xxxxxxxxxxxxx/driver
Everything works great there, but if i go to a page like http://xxxxxxxxxxxxx/driver/about I get 404.
And it works if i use url http://xxxxxxxxxxxxx/driver/about.php
But i whant to remove .php
HTTP Error 404.0 - Not Found The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
Module IIS Web Core
Notification MapRequestHandler
Handler StaticFile
Error Code 0x80070002
Requested URL http://xxxxxxxx/driver/about
Physical Path C:\xxxxxxxxxx\driver\about
Logon Method Anonymous
Logon User Anonymous
Request Tracing Directory C:\inetpub\logs\FailedReqLogFiles
This is my .htaccess
IndexIgnore *
RewriteEngine on
RewriteBase /driver/
<Files *.tpl>
Deny from all
</Files>
<Files *.inc>
Deny from all
</Files>
RewriteCond %{THE_REQUEST} ^(.+)\.php([#?][^\ ]*)?\ HTTP/
RewriteRule ^index(.*)?$ index.php$1 [L,QSA]
RewriteRule ^about(/)?$ about.php [L,QSA]
RewriteRule ^contact-us(/)?$ contact_us.php [L,QSA]
User contributions licensed under CC BY-SA 3.0