Z
Z
zheselevko2014-11-06 15:53:27
htaccess
zheselevko, 2014-11-06 15:53:27

How to remove the addition of arbitrary characters in .htaccess and remove duplicates?

Good afternoon! There is such a question. let's say a link of this nature visaimho.com/schengen-visas-costs.html it works fine, but it will also work if you add slashes after the domain. Tell me how to solve this problem visaimho.com////schengen-visas-costs.html

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
ShamblerR, 2015-02-25
@ShamblerR

don't worry, there is not a single CMS in the world that monitors slashes.
if you want to delete do a check do a redirect.

K
khipster, 2016-03-16
@khipster

# Редирект на страницу без повторяющихся /.
RewriteCond %{THE_REQUEST} //
RewriteRule .* /$0 [R=301,L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question