0

I've copied the code

RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

from here...

and copied it in a new .htaccess file and placed it in root directory of my project (D:\xampp\htdocs\testproj). but it's not working.
showing error 404 when accesing without index.php
help!

0

1 Answer 1

1

This is what u need friend

RewriteEngine On
RewriteCond %{REQUEST_URI} ^/system.*
RewriteRule ^(.*)$ index.php?/$1 [L]
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

working, thanks :) by the way the previous was not working (the official one)
Happy to hear that dont forget to give the checklist to the answer :)
i'll as soon as it permits... but can u explain the difference?

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.