2

.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]
1
  • 1
    What is "lease web hosting?" Is mod_rewrite even installed/active?
    – Su'
    Commented Feb 22, 2012 at 19:01

2 Answers 2

1

check httpd.conf to see if .htaccess is enabled

0
0

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]  
2
  • its not working.same problem again' Commented Feb 22, 2012 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
    Commented Feb 22, 2012 at 9:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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