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:

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:

typically this gets redirected to and the MVC framework kicks in and serves up the correct content.

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

.. whereas normally it receives this:

.. instead.  Why?!?!


#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 ^(.*)$$1 [L]

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

Thanks, TheFoot
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