0

I do everything is done but still not working. i don't know what wrong with me. I have do that mod_rewrite is enabled on my apache2 server. In config, $config['index_page'] = ''; and $config['uri_protocol'] = 'REQUEST_URI'; it is my base url $config['base_url'] = 'http://localhost/RB'; My codeignitor root .htaccess file contains,

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]
1
  • try RewriteRule ^(.*)$ /index.php/$1 [L] Commented Apr 28, 2020 at 15:27

1 Answer 1

0

this is the code given on their official website.

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
Sign up to request clarification or add additional context in comments.

3 Comments

i have tried this but not working.. please tell me other thing.
Hey, try changing base_url to this → $config['base_url'] = 'http://localhost/rb/'; <br> notice the trailing slash(/) and lowercase letters and change your folder name to lowercase. (URL should always be lowercase)
I did it but still not working.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.