Welcome Guest, Not a member yet? Register   Sign In
Mod_rewrite with folders in views [SOLVED]
#21

[eluser]Ludovic-r[/eluser]
I'll try that, thanks for your time!
#22

[eluser]Ludovic-r[/eluser]
FINALLY!

It's working!

I don't really know why but I put this code on .htaccess :

Code:
DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php/$1 [L,QSA]

And remove the "index.php" in config and it works perfectly Big Grin


Thanks for your help! Hope this help someone!!!
#23

[eluser]d1a8lo24[/eluser]
This is one of the errors that appears more often on the forums and is not because of CI but because everyone has a different server environment, so what work for you may not work for everyone else and also on your live server because of security this might change.

It will be nice to collect each .htaccess that has work and also name either the host their are in or the setup on their local machine.

I still have a problem with the index.php file were my host made a security update and now I can't submit a form if the index.php is not present I either get a 404 or a 403 error.

That is why I also mention to upload the app to your live server since it will be the place where your app is going to end and see if that htaccess will work there.

But i'm glad that your new .htaccees works i will copy this code if I ever need it with a customer that may be running their own sever.




Theme © iAndrew 2016 - Forum software by © MyBB