Answer the question
In order to leave comments, you need to log in
How to change htaccess redirect path?
there is htacess:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^((?s).*)$ index.php?act=/$1 [QSA,L]
needed: if there is more than one / in the path, then do not redirect.
Like - site.com/test - redirect, site.com/test/tost, do not touch it already.
Answer the question
In order to leave comments, you need to log in
RewriteEngine On
RewriteCond %{REQUEST_URI} ! тут ваше выражение
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^((?s).*)$ index.php?act=/$1 [QSA,L]
[^/]
- except for the slash, respectively, (.+[^/])
will be before the first slash, and so on Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question