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

Discussion in 'HTML & Website Design' started by entry, Jul 8, 2011.

  1. #1
    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
     
    entry, Jul 8, 2011 IP
  2. Preston Van Dyke

    Preston Van Dyke Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    htaccess is simply a cleaner and more organized to manage your redirects. Both will serve the same purpose and provide the same outcome. With an htaccess file acting as your master for all URL rewrites and redirects you can have a snapshot of what is occurring and quickly make changes where needed.
     
    Preston Van Dyke, Jul 8, 2011 IP
  3. DigiNewb

    DigiNewb Member

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    31
    #3
    I've heard that having a lot of redirects in the htaccess file is bad and will slow down the website, though, since it has to be loaded along with every page.
     
    DigiNewb, Jul 8, 2011 IP