Webkit browsers (Chrome, Safari) download pages redirected from .htaccess twice!

I have this problem. When you go to the page where the PHP code is located:

$_SESSION['test']++;
echo $_SESSION['test'];

And the page is redirected via .htaccess

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} ^(.+)\.php$
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)\.php index.php?rw=1&page=$1 [QSA,L]

So, in browsers without a web browser, you will see 1, on the next update 2, 3, 4, 5 ... But in Chrome or Safari you will see 1, 3, 5, 7, ...

Does anyone have any ideas how to solve it? I just need to redirect each page to index.php and then load the content ... but with every f *** ed redirection it has the same result ... twice loaded! Therefore, when there is a MySQL query, it is processed twice, ...: - /

Thank!:)

+2
1

, :

<iframe src="#"></iframe>

Webkit , ...

<iframe src="http://www.example.com/blankPage.html"></iframe>

!!! 10 ...: -/

+4

All Articles