ISAPI URL ZEND rewrites adding extra "/index.php/" to URL

We recently reinstalled our website on our server, the sys admin says this is an exact rebuild, and it really looks to me like it is, but something else is happening. I originally did not develop the site, and those who did it are no longer available.

URLs for admin site are now

//admin.site.com/index.php/schedules

and it should be

//admin.site.com/schedules

An additional index.php is added to index. But all the links on the admin site don't include index.php, so they don't work. If you paste index.php into any url it works. Where did this index.php come from and how to remove it from the rewrite rules in order for the links to work.

This is what my httpd.conf file reads:

# Helicon ISAPI_Rewrite configuration file
# Version 3.1.0.56

# turn on rewriting RewriteEngine On RewriteBase /

# for all files not found in the file system,
# reroute to "index.php" bootstrap script,
# keeping the query string intact. 
RewriteCond %{HTTP_HOST} ^admin.site.com$ 
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR] 
RewriteCond %{REQUEST_FILENAME} -d 
RewriteRule ^.*$ - [NC,L] 
RewriteCond %{HTTP_HOST} ^admin.site.com$ 
RewriteRule ^.*$ index.php [NC,L]

      

Thank! Any help would be greatly appreciated.

+2


source to share


1 answer


You need to implement and enable ApacheModrewrite. Then add the .htaccess file to the admin.site.com folder. Its content will be:



RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR] 
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d


RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]

      

-1


source







All Articles