Now displayed like this

index.php?all-city=51 

I want it to be like this

 index.php/city/51 

Do so

 AddDefaultCharset UTF-8 RewriteEngine On RewriteRule ^(.*)/$ index.php?all-city=$1[L] 

And does not work

    1 answer 1

     RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php [L,QSA] 

    The idea should help

    • @DivMan If it does not help, you can add Options +FollowSymlinks . - Raz Galstyan
    • I didn’t add due to - Vyacheslav
    • Did not help, does not work - DivMan
    • @DivMan Give the entire contents of your .htaccess file in question - Raz Galstyan
    • AddDefaultCharset UTF-8 RewriteEngine on RewriteCond% {REQUEST_FILENAME}! -F RewriteCond% {REQUEST_FILENAME}! -D RewriteRule ^ (. *) $ Index.php [L, QSA] Options + FollowSymlinks - DivMan