Welcome Guest, Not a member yet? Register   Sign In
Rewrite, no matter what I use in my .htaccess, I get a 500 error
#1

[eluser]jared4444[/eluser]
If there is nothing in my .htaccess file, I get to my site like this:
http://pcwci/pcwci/index.php

My base url:
$config['base_url'] = "http://pcwci/pcwci/";

I am trying to get rid of the index.php. I am trying to add this:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteCond $1 !^(index\.php|style\.css|images|css|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

If I do this, and reload my page, I get a 500 server error. It doesn't matter what I put in the .htaccess, anything seems to make it give a 500 error, even if I just put rewriteengine on.
#2

[eluser]w0bbes[/eluser]
how does your:
Code:
$config['index_page'] = "";

look? Wink
#3

[eluser]jared4444[/eluser]
$config['index_page'] = "index.php";

is that correct?
#4

[eluser]w0bbes[/eluser]
Make it empty, like i posted
#5

[eluser]jared4444[/eluser]
Thanks, I did that, also mod rewrite wasn't loaded, not it is.

But for some reason if I go to:
http://pcwci/pcwci/index.php/admin, I get a page, and if I go to http://pcwci/pcwci/admin, I get redirected backt o just http://pcwci/pcwci/.
#6

[eluser]w0bbes[/eluser]
what happends when you call http://pcwci/pcwci/admin
#7

[eluser]jared4444[/eluser]
that should have read "now it is"

Sorry to be consitent, I changed everything to localhost as the domain so it should now read http://localhost/pcwci

If I got to:
http://localhost/pcwci/ I get a wamp page
http://localhost/pcwci/index.php, I get the codeigniter default page
http://localhost/pcwci/index.php/admin I get My admin page
http://localhost/pcwci/admin I get the wamp page just as if I used http://localhost/pcwci/




Theme © iAndrew 2016 - Forum software by © MyBB