0

my .htaccess code as below:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
ErrorDocument 404 http://www.intelligent-t.com/404

How to create httpd.ini file with the same above roles ???

Saeed Aknan
  • 93
  • 1
  • 7

1 Answers1

0

There is no alternative for ErrorDocument directive and RewriteCond %{REQUEST_FILENAME} !-f in ISAPI_Rewrite 2, but the closest config will look like this:

[ISAPI_Rewrite]

RewriteRule /(?!(?:list|of|physical|files|and|folders))([^\.]+)$ /$1.php [I,L]
TonyCool
  • 1,004
  • 1
  • 6
  • 5
  • Unfortunately, not working. First role to remove file extension ( .php ), second role to redirect the visitor to 404.php file if URL not found. – Saeed Aknan Apr 02 '15 at 19:25