J
J
jorshjorsh952018-09-06 10:53:37
htaccess
jorshjorsh95, 2018-09-06 10:53:37

How to remove the slash at the end on level 2?

Good afternoon, there is a link like:
http://site.ru/category/page.php/
how to remove / at the end and redirect to:
http://site.ru/category/page.php
But, only at the 2nd level of nesting, just removing / at the end of the url is easy.
Tell me please

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2018-09-06
@jorshjorsh95

RewriteRule ^([^/]+/[^/]+\.php)/$ /$1 [R=301,L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question