Redirects .htaccess method VS Html Version? What is the difference?

by entry
1 replies
  • WEB DESIGN
  • |
I have put this question here.


I have seen 2 ways to redirect pages,

{Method 1} Using the htaccess file,

Redirect 302 /EntryRecommends http://MyUsername.ClickbankProduct.hop.clickbank.net
{Method 2} entering this code, in the html:


<META NAME="resource-type" CONTENT="document">
<META HTTP-EQUIV="refresh"

CONTENT="0 ;URL=http://www.ThePageIWantToRedirectTo.com">
<META HTTP-EQUIV="distribution" CONTENT="Global">
</HEAD>
<BODY>
<div align="center"><font size="2" face="Arial, Helvetica, sans-serif"> <A HREF=http://www.ThePageIWantToRedirectTo.com>Click Here</A> if you are not redirected...</font></div>
</BODY>
</HTML>

or somthing like that.


What are the pros and cons of each method above {1} and {2} ?

Both do the same job, dont they ? or is there somthing I am missing ?
#difference #htaccess #html #method #redirects #version
  • Profile picture of the author Abhishek Kundu
    hi entry,
    you are right, both does the same job but the advantage of using the .htaccess redirect helps google to understand that you have made a 301 redirect which is a permanent redirect for that particular page.
    in this method the redirection happens from the server directly.

    the second one only helps to redirect to another page and not other information is given. as per my experience the 2nd method is not liked by google.:p
    in this method the redirection is done via your browser and if you have virus in your computer then it can also affect the redirection.

    if i have to select out of the two options then i would definitely use the 1st one with .htaccess

    you can test it yourself also.

    hope i am able to clear your doubts.
    Signature
    CLICK HERE>>> FOLLOW ME ON TWITTER <<
    {{ DiscussionBoard.errors[4240105].message }}

Trending Topics