V
V
Viktor Volkov2018-12-07 10:09:23
Browsers
Viktor Volkov, 2018-12-07 10:09:23

Why do .htaccess directives work differently in the same browsers on a mobile platform and on a computer?

Here is the content of .htaccess

AddDefaultCharset utf-8

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule  .+ index.php

1) I open the site on my computer: it works adequately on Yandex, Chrome, Opera and even on EDGE)), but FireFox swears:
"Firefox has determined that the server is redirecting the request to this address in such a way that it will never complete.
This problem may occur when disabling or prohibiting the acceptance of cookies."
COOKIES HAVE NOT BEEN DISABLED OR FORBIDDEN.
2) I open the site from the phone: it works on Chrome, Google (not chrome, but the Google browser itself), Opera, Safari and FireFox (on it for the first two seconds, then a glitch and looks for the printer throwing out the menu every second, but this is not about , I just wanted to share: FireFox on IOS is already a buggy version in a row .... ). BUT IN YANDEX it says "too many HTTP redirect"...
How to be?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Taran, 2018-12-07
@VGVolkov

try like this

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !/index.php$
RewriteRule  .+ index.php [L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question