Welcome Guest, Not a member yet? Register   Sign In
Removal of index.php is not working?
#1

[eluser]brucebat[/eluser]
Ok if have been trying to remove index.php from my url.


XAMPP Apache / Php 5.05 dev
CI 2.0.2


I have uncommented mod_rewrite module

Code:
LoadModule rewrite_module modules/mod_rewrite.so

This is the code in my .htaccess file in Application folder

Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt|css|content|application|system)
RewriteRule ^(.*)$ /index.php/$1 [NC]

RewriteCond $1 ^(application|system)
RewriteRule ^(.*)$ / [R,NC]

Is there anything else I have forgotten to do?

Thanks
#2

[eluser]Developer13[/eluser]
Did you remember to restart apache after enabling mod_rewrite?
#3

[eluser]brucebat[/eluser]
When you mean restart is that when I stop and start my http service in the xampp control panel?
#4

[eluser]Developer13[/eluser]
Yep.
#5

[eluser]brucebat[/eluser]
Nope still not working then,

Is there anything I could have missed out?

My url is this :

Code:
http://localhost/midas/index.php/site
#6

[eluser]Developer13[/eluser]
#1 - Does the site work *with* index.php enabled?

#2 - Did you also remove index.php from your config file?

#3 - Have you tried cycling through the various URI protocols in your config file?
#7

[eluser]brucebat[/eluser]
Ok the config file still had "index.php" in it.

Thanks

However now im getting Object Not Found:
Code:
http://localhost/midas/site/

I think I might need to change the htaccess file as I believe its the culprit?




Theme © iAndrew 2016 - Forum software by © MyBB