Welcome Guest, Not a member yet? Register   Sign In
PHP5, mod_rewrite (on Lunar Pages)
#1

[eluser]antiver[/eluser]
I developed a CI app on PHP 5, using mod_rewrite. And then I moved to a server (hosted by Lunar Pages) using PHP 4, and mod_rewrite. Everything worked fine until I added the following two lines to the .htaccess file to switch to PHP 5, and now I'm getting errors from Firefox that the site isn't redirecting properly.

Code:
AddHandler application/x-httpd-php5 .php5 .php4 .php .php3 .php2 .phtml
AddType application/x-httpd-php5 .php5 .php4 .php .php3 .php2 .phtml

Removing the mod_rewrite stuff (copied straight from the CI wiki) and adding "index.php" back to $config['index_page'] fixes the problem, but unfortunately the site 100% needs mod_rewrite AND PHP 5.

I can't figure out how to get the two to play nice together. Any suggestions are welcome!


Messages In This Thread
PHP5, mod_rewrite (on Lunar Pages) - by El Forum - 06-01-2008, 04:09 PM
PHP5, mod_rewrite (on Lunar Pages) - by El Forum - 06-01-2008, 06:06 PM
PHP5, mod_rewrite (on Lunar Pages) - by El Forum - 06-01-2008, 06:10 PM
PHP5, mod_rewrite (on Lunar Pages) - by El Forum - 06-01-2008, 06:40 PM



Theme © iAndrew 2016 - Forum software by © MyBB