Welcome Guest, Not a member yet? Register   Sign In
mod_rewrite - I cant seem to get it to work.
#11

[eluser]harpster[/eluser]
That's what it did for me... my URL http://localhost/fitlog/cycling/index.php/entry
is now http://localhost/fitlog/cycling/entry
#12

[eluser]guidorossi[/eluser]
[quote author="symvar" date="1299876932"]
Just to make sure that i understand the function of mod_rewrite for codeigniter, could someone confirm this?
If i go to "http://www.wicservices.nl/ci/index.php/welcome" mod_rewrite should remove index.php/ right?

Cheers,
Symvar[/quote]

Well, not really, in my case, I'm using mod_rewrite and I can acces the site both ways www.example.com/index.php/welcome and www.example.com/welcome . But if you're not using mod_rewrite you can't use friendly URLs like www.example.com/welcome

I really don't know what's happening to your CI installation...

Take a look at http://stackoverflow.com/questions/47952...wing-index
#13

[eluser]symvar[/eluser]
Thanks for the link Guido, at this moment i can use both links with index.php and without. If i disable the .htaccess i can only use url's with index.php.

The .htaccess is located in www.wicservices.nl/ci and this is the content:
Code:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]

Seems fairly simple lol..

Ill give it some more checks when i have time, Thanks allot for all the help folks!

Symvar


p.s.

Code:
$config['index_page'] = '';
$config['uri_protocol']    = 'AUTO';




Theme © iAndrew 2016 - Forum software by © MyBB