Welcome Guest, Not a member yet? Register   Sign In
SOLVED---removing index.php from site url .........Problem starting a project
#11

[eluser]Ram2810[/eluser]
[quote author="Colin Williams" date="1262604004"]Just put some random code in your .htaccess file and if it generates a 500 error, then you know your .htaccess file is loading.[/quote]

I used following in .htccess file

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]

<?php echo "Hi" ?>

I loaded following url
Code:
http://localhost/projects/code-igniter

I got only 404 error no other error
#12

[eluser]Ram2810[/eluser]
I solved it ... needed to change allowoverride none to all in httpd.conf..........

Thans for all help
#13

[eluser]Unknown[/eluser]
Try this one, it's working everywhere : Localhost below code working fine but when we host the website its not working. i am also facing same problem in my websites if you try to use below code.
Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|css|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*)$ index.php/$1 [L]




Theme © iAndrew 2016 - Forum software by © MyBB