Answer the question
In order to leave comments, you need to log in
Write condition in htaccess?
Don't throw tomatoes!
I am not familiar with the htaccess setting, but then I will definitely read what's what there.
Please help me because I don't have much time.
So, there is initially a file, it says:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [L] REQUEST_URI
Answer the question
In order to leave comments, you need to log in
RewriteRule ^(.*)$ index.php/$1
this construction is used when php script works with $_SERVER['PATH_INFO'] variable.
And when working with $_SERVER['REQUEST_URI'] is usually enoughRewriteRule ^ index.php
RewriteEngine on
RewriteRule ^admin/ folder/ [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [L]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question