Running .htaccess on your WebServer vs localhost

Running .htaccess on your WebServer vs localhost

If you are having problem running your new application on your webserver is a pain in the ass even though its completely running on your localhost, it could be you need to update your .htaccess file in order for it to run.

RewriteEngine On

RewriteBase /

RewriteCond %{ENV:REDIRECT_APP_PATH} !^$
RewriteRule ^(.*)$ - [E=APP_PATH:%{ENV:REDIRECT_APP_PATH}]

RewriteCond %{ENV:APP_PATH} ^$
RewriteRule ^(.*)$ - [E=APP_PATH:/$1]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [L]

# End of file
# http://www.archiemercader.com/

No related content found.

32% off New Product orders at GoDaddy.com! Expires 7/30/13.

Leave a Reply