Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

.htaccess is not working.

  • /index.php/user -- is working

  • http://www.example.com/user is not working

Current .htaccess file:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]
share|improve this question
1  
What is "lease web hosting?" Is mod_rewrite even installed/active? –  Su' Feb 22 '12 at 19:01
add comment

2 Answers

up vote 1 down vote accepted

check httpd.conf to see if .htaccess is enabled

share|improve this answer
    
thanks its working. –  Bruno Thileeban Mar 7 '12 at 6:40
add comment

Your rewrite rules should look like this:

RewriteEngine On 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^(.*)$ /index.php/$1 [L]  

If your CI installation runs on a CGI implementation, you should add a questionmark in the .htaccess, lik so:

RewriteEngine On 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^(.*)$ /index.php?/$1 [L]  
share|improve this answer
    
its not working.same problem again' –  Bruno Thileeban Feb 22 '12 at 9:48
    
Then you have to come up with more information than 'is working, is not working' How do you determine that it doesn't work? Have you checked your error logs? Does it even work without the mod_rewrite rules? Did you setup the config.php correctly? –  Repox Feb 22 '12 at 9:54
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.