Answer the question
In order to leave comments, you need to log in
Weird glitch in Chrome
Hello. Help solve the problem. There are two sites configured according to my article - test.dev and test0.dev. At the root of the sites are the same .htaccess :
AddDefaultCharSet utf8
php_flag display_errors on
php_flag display_startup_errors on
ErrorDocument 401 /error/401.html
ErrorDocument 403 /error/403.html
ErrorDocument 404 /error/404.php
Options -Indexes
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?route=$1 [L]
<?php
session_start();
if(!isset($_SESSION['count'])) {
$_SESSION['count'] = 0;
$_SESSION['count1'] = '0';
}
++$_SESSION['count'];
$_SESSION['count1'] = $_SESSION['count1'] . '/' . $_SESSION['count'];
echo $_SESSION['count'] . "<br>";
echo $_SESSION['count1'] . "<br>";
exit;
RewriteRule ^(.*)$ index.php?route=$1 [L]
Answer the question
In order to leave comments, you need to log in
Well, why is this happening - it’s just not surprising if the entry point is configured as a 404 handler.
And why on the second ... Well, apparently, they didn’t forget to put a favicon there.
Hint: "Network" tab should open on "double requests" first.
Chrome, regardless of the presence of information about the favicon in the body of the page, tries to request it. In general, so that such questions arise less often - immediately turn on logging, everything will be clear to you immediately
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question