troubleshooting Question

SUPER-URGENT! MVC / RewriteRule .htaccess issue on live server

Avatar of Barry Jones
Barry JonesFlag for United Kingdom of Great Britain and Northern Ireland asked on
Apache Web ServerPHPWeb Development
20 Comments1 Solution502 ViewsLast Modified:
Hi.

I have an htaccess file that performs MVC routing (file content below).  This works perfectly on local, and staging servers, however fails for some reason on live.

I have ABSOLUTELY no idea whats going on.  If I enter the following url:

http://ggmr.co.uk/home

typically this gets redirected to http://ggmr.co.uk/route.php and the MVC framework kicks in and serves up the correct content.

The problem on live is that the router object receives this:

http://ggmr.co.uk/route.php/home

.. whereas normally it receives this:

http://ggmr.co.uk/home

.. instead.  Why?!?!

htaccess:

#Default document
DirectoryIndex index.php

# Turn rewriting on
Options +FollowSymLinks
RewriteEngine On

# Send request via route.php but only if its not a real file or folder
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ http://ggmr.co.uk/route.php/$1 [L]

Currently our site is down and I need help urgently please!!

Thanks, TheFoot
ASKER CERTIFIED SOLUTION
Beverley Portlock

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 20 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 20 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros