5 replies
Hello Duncanb here!

A question for all you programmers!

Can anyone advise the best way to set up a 301 redirect for a wordpress site.

I basically want google to consider the mydomain.com version and the www.mydomain.com version of my site as one, so that backlinks will work accross the two.

Thanks,

Duncanb
#301 #redirect
  • Profile picture of the author Abledragon
    Your hosting provider will normally set that up as a default - best to check with them. I know that Hostgator does and HG also offers you the option of changing the settings through cPanel.

    Cheers,

    Martin.
    Signature
    WealthyDragon - Earning My Living Online
    {{ DiscussionBoard.errors[3255214].message }}
  • Profile picture of the author Emilis Strimaitis
    Yea, hosting providers usually do that.

    However, if you want something to be done, do it yourself

    There's a Wordpress plugin called Simple 301 Redirects. You should check it out. It's really self-explanatory.

    WordPress › Simple 301 Redirects « WordPress Plugins
    {{ DiscussionBoard.errors[3256855].message }}
    • Profile picture of the author joe12joe
      Originally Posted by Emilis Strimaitis View Post

      Yea, hosting providers usually do that.

      However, if you want something to be done, do it yourself

      There's a Wordpress plugin called Simple 301 Redirects. You should check it out. It's really self-explanatory.

      WordPress › Simple 301 Redirects « WordPress Plugins

      I recommend this pluggin too because I have been using it and works like a charm for me. I feel, that is a best thing about WordPress, you really dont have to do some complex configuration but installing a pluggin and relax.
      {{ DiscussionBoard.errors[3257444].message }}
  • Profile picture of the author TelexTape
    I prefer to do redirects in the htaccess file. When you set the redirect using Cpanel it affects all sites in your account including addon domains (I think, I'd have to go look to make sure). Some of my sites, I do not use www and redirect any possible incoming links with www to non-www domain name.

    I haven't looked at the Wordpress plugin, but I imagine it simply adds 2 lines of code to the htaccess file for you for each install of Wordpress.
    {{ DiscussionBoard.errors[3256904].message }}
  • Profile picture of the author serem
    You can change it By cpanel most of hosting service provider give this service.....
    {{ DiscussionBoard.errors[3257170].message }}

Trending Topics