Best Way to Redirect - htaccess or plugin?

11 replies
  • WEB DESIGN
  • |
Hi

I purchased a high pr domain which has quite a few pages indexed.

I'm putting a new wordpress blog on the domain. Should I use a redirect plugin or make changes to .htaccess?

As you can imagine I want to keep the PR so is one way better than the other?
#htaccess #plugin #redirect
  • Profile picture of the author WritingFargo
    Google recommends .htaccess 301 redirect (permanent redirect)
    {{ DiscussionBoard.errors[5132454].message }}
  • Profile picture of the author xtrapunch
    The end result of using a redirection plugin or .HTACCESS file is the same. The plugin creates an .htaccess file with required settings. So do it the way you are comfortable.
    Signature
    >> Web Design, Wordpress & SEO - XtraPunch.com <<
    Web Design & SEO Agency | Serving World Wide from New Delhi, India

    {{ DiscussionBoard.errors[5132653].message }}
    • Profile picture of the author tampaprogrammer
      the wordpress plugin is easier to understand for non/newbie programmers. htaccess has some pretty encryptic code to make work.
      {{ DiscussionBoard.errors[5132758].message }}
      • Profile picture of the author nancykapoor
        If your website functionality is on wordpress CMS then you can install .htaccess plugin on your website and on the other hand, good way to do 301 permantely redirection is through .htaccess file. As, it really depends on server (whether window or linux server).
        {{ DiscussionBoard.errors[5133177].message }}
  • Profile picture of the author blogfreakz
    you can setup 301 redirects in cpanel as well...

    mydigitalinternet.com/2011/how-to-set-up-a-301-redirect-in-cpanel/
    {{ DiscussionBoard.errors[5133366].message }}
  • Profile picture of the author rosesmark
    1. HTTP redirect

    The most basic method of redirection often employed is a standard meta refresh. You would use code within the <head></head> tags of the index.html file on the site to look like this:

    <meta http-equiv="refresh" content="1;url=http://www.new-url.tld">

    It is possible, however, that some browsers may ignore this, especially if the user has intentionally disabled it.

    2. PHP redirect

    If your server supports PHP, you can use a PHP as your site’s index and place the following code in it:

    <?
    Header( "HTTP/1.1 301 Moved Permanently" );
    Header( "Location: http://www.new-url.tld" );
    ?>

    Since PHP files are always server-side scripts, all browsers should respond to this the same way.

    3. Htaccess redirect

    Options +FollowSymlinks
    RewriteEngine on
    rewritecond %{http_host} ^new-url.tld [nc]
    rewriterule ^(.*)$ http://www.new-url.tld/$1 [r=301,nc]

    An .htaccess file will send directives to an Apache web server and tell it to follow whatever instructions are inside. In this case, it will use the mod_rewrite engine to turn any URL requests into the new domain you have specified. This is particularly useful if you need to redirect several URLs to a new site.
    {{ DiscussionBoard.errors[5133476].message }}
    • Profile picture of the author moneyglue
      Thanks for all your help guys
      {{ DiscussionBoard.errors[5136788].message }}
  • Profile picture of the author gecko1
    From experience, what if you want to do a temporary re-direct (302)?
    would that affect rankings?
    {{ DiscussionBoard.errors[5138583].message }}
    • Profile picture of the author xtrapunch
      Originally Posted by gecko1 View Post

      From experience, what if you want to do a temporary re-direct (302)?
      would that affect rankings?
      Temporary redirection (302) will not pass the link juice to the destination URL. It is not advisable for SEO boost.
      Signature
      >> Web Design, Wordpress & SEO - XtraPunch.com <<
      Web Design & SEO Agency | Serving World Wide from New Delhi, India

      {{ DiscussionBoard.errors[5139363].message }}
      • Profile picture of the author usertesting123
        Use 301 redirect. Create .htaccess file and save in your root folder.

        It will redirect any url to your destination url.

        Thanks.
        {{ DiscussionBoard.errors[5139777].message }}
  • Profile picture of the author OBaz
    WP plugin called Redirection available from WordPress site works wonders. If you going to stick with WP - plugin is the easiest way. Doing it in code yourself will help you if you move into other CMS in future.
    {{ DiscussionBoard.errors[5139943].message }}

Trending Topics