Mobile app version of vmapp.org
Login or Join
Heady270

: HTTP meta refresh keeps looping in older browsers I added an HTTP meta refresh to my site like this: <meta http-equiv="refresh" content="0;url=http://mysite.com"> but it seems that the browser

@Heady270

Posted in: #Redirects #Refresh

I added an HTTP meta refresh to my site like this:

<meta http-equiv="refresh" content="0;url=http://mysite.com">


but it seems that the browser keeps looping (refreshing) in older Firefox browsers, while in the new version (30.0) it doesn't.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Heady270

1 Comments

Sorted by latest first Latest Oldest Best

 

@Becky754

Looping is what I would expect. Likely, the HTTP and HTTPS versions of your page are served from the same document root. This means the same content is served to the visitor regardless of the HTTP protocol.

As a result, when someone visits mysite.com they are redirected to mysite.com which then redirects them again to mysite.com. This creates the loop.

With meta-refresh there is no way to distinguish between HTTP and HTTPS links.

What you want to do is use mod_rewrite as I documented here

Search for my web site returns HTTPS results

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme