I
I
ivashjke2016-10-13 22:22:53
PHP
ivashjke, 2016-10-13 22:22:53

How to solve the problem with .htaccess?

Hello!
I met with the following problem.
There is a site on Bitrix.
Today I noticed the problem of switching to the site from the Viber messenger
domen.ru/%20/?utm_source=Viber&utm_medium=Chat&utm... It gives
a 404 error.
Please help me create a rule in the htaccess redirect to domen.ru

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Sisyukin, 2016-10-13
@ivashjke

So everything is true what kind of directory is this with a space name

RewriteEngine On
       RewriteCond %{REQUEST_URI} ^/\s/
      RewriteRule (.*)   /

A
Anton fon Faust, 2016-10-13
@bubandos

Does viber put a space?

I
ivashjke, 2016-10-13
@ivashjke

The redirect worked, I tried a similar entry, but the redirect happened many times and as a result the browser gave an error. And the remaining %20/?utm_source=Viber&utm_medium=Chat&utm_campaign=Private in the address bar can somehow be removed?
and there is no directory with space name ..

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question