Welcome Guest, Not a member yet? Register   Sign In
[solved] I just can't get the index.php out of the URL
#1

[eluser]J.P.C.[/eluser]
I 've tried everything and nothing worked. The closest guide to get the index.php from the URL was http://codeigniter.com/wiki/Godaddy_Installaton_Tips/

But it didn't work either, it's giving me 500 internal server error.
I just don't know what to try ...

I'm using Linux (Ubuntu) with XAMPP.
The rest of the configurations is just like the guide I mentioned earlier.

Please, if anyone can give me a hand with this let me know. Until then my project will be stopped.
THX
#2

[eluser]pistolPete[/eluser]
You are using CI on your local server? So the Godaddy Configuration does not apply for you!
Have a look in the forum, e.g.

http://ellislab.com/forums/viewthread/84351/
http://ellislab.com/forums/viewthread/85036/
http://codeigniter.com/wiki/Dreamhost_.htaccess/
http://ellislab.com/forums/viewthread/83332/
#3

[eluser]J.P.C.[/eluser]
Thanks! I solved it with two things:

1) in my .htaccess I changed the last sentence to RewriteRule ^(.*)$ index.php?$1 [L]
instead RewriteRule ^(.*)$ /index.php?$1 [L]
This is because I have my project in a subfolder

2) Then I replaced on my config.php:
$config['index_page'] = "index.php?";

to

$config['index_page'] = "";


And that's all! Thank you very much!
#4

[eluser]Colin Williams[/eluser]
Why send the URI as a query string

Code:
RewriteRule ^(.*)$ index.php?$1 [L]

and not a path?

Code:
RewriteRule ^(.*)$ index.php/$1 [L]

I see this all the time and don't understand it. When you do it this way, it means you cannot use clean URIs AND query strings (you only get one query string per URI). If you don't want to get rid of index.php, your URIs look like http://www.example.com/index.php/controller/function/id, so why would you use rewrite rules that generate a request equal to http://www.example.com/index.php?controller/function/id ???




Theme © iAndrew 2016 - Forum software by © MyBB