S
S
Sergey Valitov2017-01-22 06:37:12
htaccess
Sergey Valitov, 2017-01-22 06:37:12

How to remove the slash at the end of the address if all requests refer to index.php?

Hello! I want to understand such a question, how to make a redirect with a slash to without a slash, if the htaccess is like this:

RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^(.*)$ index.php?route=$1

And if I enter site.ru/australia/ refers to site.ru/index.php?route=australia/
And I need it to refer to /australia with and without a slash. No slash.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question