PDA

View Full Version : HTML redirect and .htaccess redirect. differences?


DeanLag
11-24-2009, 05:47 AM
Heya,
I'm currently using HTML redirect using:
<meta HTTP-EQUIV="REFRESH" content="0; url=http://www.yourdomain.com/index.html">

Is there any cons using this way instead of .htaccess?

Thanks!

Marco van Herwaarden
11-24-2009, 07:00 AM
Well the most obvious is that your webserver will first need to read and sent data to the client, which in turn will request a different page to be loaded. With .htaccess the first page will never even be read but the request is directly redirect to the new page.