Remove index.php (desperately need help) |
[eluser]PlayMate[/eluser]
I'm sorry for bothering with this topic again. I'm desperately removing index.php from my Ci application. My htacess works on my localhost, but it isn't in my hosting site (error 500). I have tried all of htaccess mentioned in this forum and wiki. My current htaccess : Code: # Turn on URL rewriting My ci installation dir on hosting: Code: /www You can check my site Here. The correct page display phpinfo() like this one. Thank you in advance. Sorry for my bad English. Regard
[eluser]Udi[/eluser]
Check Apache logs... see where its trying to access. This is my .htaccess file, and I don't define RewriteBase.. : Code: RewriteEngine on
[eluser]PlayMate[/eluser]
Udi, thank you so much your .htaccess it works! But my css and js file not loaded. I try to modify my old htaccess (which the css and js works) like this: Code: RewriteEngine On Oh yeah, where can i see the apache log if i experience this problem in future? SOrry if sound stupid questions.
[eluser]Udi[/eluser]
take a look at this line in my htaccess: Code: RewriteCond $1 !^(index\.php|uploads|favicon\.ico|robots\.txt)
[eluser]Adrian Walls[/eluser]
I too am having issues with this. I have a directory in the webroot called assets under which are sub folders such as css, js, images etc... If I add the assets folders as below (after uploads): Code: RewriteEngine on it will display the site images OK but the stylesheet is not being loaded. Do I need to add the css sub directory to this i.e. assets/css and if so what is the correct syntax for doing this?
[eluser]Udi[/eluser]
That's strange, try accessing the assets folder by URL... what you get? try accessing assets/css and assets/js - what you're seeting?
[eluser]Adrian Walls[/eluser]
Yeah that works fine. I can view a directory listing if I try to access it directly with the url. For the rewrite rule is it sufficient to just add the assets folder to the rule as in the example in my last post or do I need to specify all the sub dir's under assets as well?
[eluser]Udi[/eluser]
No.. you don't. I use the same method, only its called 'res' [for resource] and not 'assets'. The assets folder is in the same level as system folder or index.php file?
[eluser]Adrian Walls[/eluser]
My directory structure under web root is: Code: -.htaccess |
Welcome Guest, Not a member yet? Register Sign In |