[SOLVED] .htaccess redirect from https to http shows the "index.php?" |
[eluser]Joakim_[/eluser]
[quote author="PowerCode" date="1230634122"]Oops, I'm really sorry. You actually need the index.php or index.php? (as required by some hosts). So your previous query was right. That's the reason for the internal server error. So you need to change it back to RewriteRule ^(.*)$ /index.php?/$1. My bad. Just make sure you've set $config['index_page'] I mentioned above to "", though it may not be the problem. Anyways, I just did a small test, Code: RewriteEngine On I had this in a folder called HTTPS, and thus tried http://localhost/HTTPS/auth, which matched the second condition. Now instead of redirecting to https://localhost/HTTPS/auth, it redirects to https://localhost/HTTPS/auth?/auth. I don't know what the problem is .[/quote] Thank you very much for all your help! The strange thing is that it used to work when I had the CI installation in a folder like /ci/. When I moved it to root and combined the .htaccess files from root and /ci/ it didn't work no more. Before, the .htaccess code to remove the index.php? was in a separate .htaccess file in the /ci/ directory and the rest was in the root .htaccess file. Like this: /.htaccess (root) Code: RewriteEngine On /ci/.htaccess Code: RewriteEngine On Thanks! |
Messages In This Thread |
[SOLVED] .htaccess redirect from https to http shows the "index.php?" - by El Forum - 12-29-2008, 09:20 AM
[SOLVED] .htaccess redirect from https to http shows the "index.php?" - by El Forum - 12-29-2008, 10:00 AM
[SOLVED] .htaccess redirect from https to http shows the "index.php?" - by El Forum - 12-29-2008, 10:29 AM
[SOLVED] .htaccess redirect from https to http shows the "index.php?" - by El Forum - 12-29-2008, 10:48 PM
[SOLVED] .htaccess redirect from https to http shows the "index.php?" - by El Forum - 12-30-2008, 04:03 AM
[SOLVED] .htaccess redirect from https to http shows the "index.php?" - by El Forum - 12-30-2008, 06:21 AM
[SOLVED] .htaccess redirect from https to http shows the "index.php?" - by El Forum - 01-01-2009, 04:31 AM
[SOLVED] .htaccess redirect from https to http shows the "index.php?" - by El Forum - 01-01-2009, 11:31 AM
|