.htaccess causing weird redirect issues? |
[eluser]Corey Freeman[/eluser]
So I used the generic code from the documentation: Code: RewriteEngine on however, that's just causing it to redirect to the default controller... http://www.cloudreve.com http://www.cloudreve.com/register Any help would be greatly appreciated!
[eluser]n0xie[/eluser]
Try this: Code: <IfModule mod_rewrite.c> And set the URI_Protocol in your config.php to PATH_INFO
[eluser]n0xie[/eluser]
Are you running on FastCGI? Else you might want to take a look at : http://ellislab.com/forums/viewthread/159406/
[eluser]Corey Freeman[/eluser]
[quote author="n0xie" date="1285095969"]Are you running on FastCGI? Else you might want to take a look at : http://ellislab.com/forums/viewthread/159406/[/quote] The other configuration also gives me an internal server error. I -know- I had something working .htaccess on this exact website before but maybe downgrading my host recently to VPS changed things? Now nothing is working >.<
[eluser]n0xie[/eluser]
Are you sure mod_rewrite is enabled on your server? To make sure create an info file in your webroot and look for 'mod_rewrite' Code: <?php
[eluser]Corey Freeman[/eluser]
I don't see any field that says "mod_rewrite"
[eluser]n0xie[/eluser]
Maybe this will help: http://ellislab.com/forums/viewthread/96347/
[eluser]bretticus[/eluser]
[quote author="Corey Freeman" date="1285097426"]I don't see any field that says "mod_rewrite"[/quote] I believe you have already don this part, but to reiterate... Create an info.php file in your site root (same level as the main index.php) Put one line of code in it (as Noxie recommended.) Code: <?php In the output look for apache2handler (yours might be different because we all assume FastCGI.) If you do have that section, look for "Loaded Modules." If you have that subsection and no mod_rewrite, that you cannot hide index.php. If you get Server API CGI from about the 3rd line down, you have CGI and the apache2handler instructions are irrelevant. Do you have SSH access by chance? If so you might be able to use apache2ctl -M (or apachectl -M) and look for "rewrite_module." If problems persist, contact the administrators.
[eluser]Corey Freeman[/eluser]
I got this working but for some reason it won't link to local images... Code: RewriteEngine on Any ideas? |
Welcome Guest, Not a member yet? Register Sign In |