Need Help with 301 Redirect

by PGA
11 replies
  • SEO
  • |
I've searched many sites and around the Warrior Forum but I'm still having trouble finding a step-by-step process that shows me how to do a 301 Redirect. I'm rewording one of my old Urls on my site to help with SEO. It's not the main URL, it's one of the pages on that site. Does anyone know where I can find a video or something that will show me a step-by-step process for doing this? As always, I appreciate the the help.


Thanks,
P
#301 #redirect
  • Profile picture of the author Alex Williams
    The easiest (and fastest) way to do that is by adding a redirect code to the .htaccess file.

    Access the files of your site through FTP or by going to the file manager on CPanel.
    Find the .htaccess file, open it for edition
    at the very end of it, just add a simple line:

    redirect 301 /your-page-you-want-redirected http://page-you-want-redirected-to.info

    , where"/your-page-you-want-redirected" is the address of the page without the http://site.com. For example, for a page

    http://site.com/pageaboutdogs to be redirected to http://anothersite.com/pageaboutcats, you would do (on the .htaccess file of the http://site.com website):

    redirect 301 /pageaboutdogs http://anothersite.com/pageaboutcats

    I hope this is clear and will help!
    {{ DiscussionBoard.errors[3653457].message }}
    • Profile picture of the author bcreen
      Finally, I found this -- thanks! may I assume that a WordPress 'post' that has a permalink that "looks" like a website 'page' would work the same way?
      Also, is there a limit as to how many pages or posts you do the 301 redirect for, within a single website?
      Signature

      {{ DiscussionBoard.errors[4355806].message }}
  • Profile picture of the author Brian Alaway
    What type of site is it? WordPress, html, Linux hosting or Windows?
    {{ DiscussionBoard.errors[3653459].message }}
    • Profile picture of the author sanssecret
      Am I doing something wrong with redirects then? All I use is the 'redirects' icon in my cp. I tell it to redirect 'mysite.com/thispage' to mysite.com/thatpageinstead' and it works every time.

      Is using the .htaccess better somehow?
      Signature
      San

      The man who views the world at fifty the same as he did at twenty has wasted thirty years of his life. ~Muhammad Ali
      Pay me to play. :) Order a Custom Cover today.
      {{ DiscussionBoard.errors[3653746].message }}
      • Profile picture of the author yukon
        Banned
        Originally Posted by sanssecret View Post

        Am I doing something wrong with redirects then? All I use is the 'redirects' icon in my cp. I tell it to redirect 'mysite.com/thispage' to mysite.com/thatpageinstead' and it works every time.

        Is using the .htaccess better somehow?
        Chances are If your doing the redirect inside your Cpanel, it's adding all the code you need to your .htaccess file automatically.
        {{ DiscussionBoard.errors[3654451].message }}
      • Profile picture of the author Alex Williams
        Originally Posted by sanssecret View Post

        Am I doing something wrong with redirects then? All I use is the 'redirects' icon in my cp. I tell it to redirect 'mysite.com/thispage' to mysite.com/thatpageinstead' and it works every time.

        Is using the .htaccess better somehow?
        You`re doing it right - the result is the same, it`s just much faster to do on the .htaccess no need to login to cPanel, navigate, add, save, etc. Plus, on the .htaccess file, you just open it and can see all of your redirects - and the order you added them in. Just seems to be more organized and faster for me personally.
        {{ DiscussionBoard.errors[3658605].message }}
    • Profile picture of the author PGA
      Hi Brian,

      My site is made through Xsitepro and hosted on Hostgator
      {{ DiscussionBoard.errors[3654445].message }}
  • Profile picture of the author theIMgeek
    San, using cPanel's Redirect feature is just as technically sound as any other method. Just be sure to pick "Permanent 301" in the drop down box.

    -Ryan
    Signature
    FREE WSO: Protect and Automatically Deliver Your Digital Products

    Ask the Internet Marketing Geek
    <-- Happy to help with technical challenges
    MiniSiteMaker.org <-- Free software to make your mini-sites fast and easy
    {{ DiscussionBoard.errors[3654005].message }}
  • Profile picture of the author socialbookmark
    When your site hosted on hostgator, it has cPanel and redirecting using cPanel is better if you don't know how to code on .htaccess file. But if you are going to change the structure if a lot of links, i think adding the code of it to .htaccess file manually is easier.
    Signature

    I love warriorforum. zendegiyesabz

    {{ DiscussionBoard.errors[3658721].message }}
  • Profile picture of the author allanswagger
    Hello Friends,

    If you need to move a page or a whole website, a 301 redirect is always recommended. If you just change a file name or delete a page, you my lose search engine rankings that were associated with the old page. By using a 301 redirect, you tell search engines and humans where to find the new page.
    Avoid using a meta refresh tag as this is a technique used by search engine spammers to rank well for certain keyphrases that are totally irrelevant from the page redirected to. Many search engines filter out the meta refresh tag, so it is not a search engine friendly option.
    So, how do you do a 301 Redirect? It's actually quite simple on a website using a Unix server:
    1. Locate or create a .htaccess file on your server. Your .htaccess file gives search engine robots instructions on security and redirects.
    2. If you don't have an .htaccess file on your server, you can easily create one using a text file. Name it ".htaccess"
    3. If there is already an .htaccess file scroll down past the code that is already there and begin your new redirect instructions.


    Thanks
    {{ DiscussionBoard.errors[3659010].message }}
  • Profile picture of the author imuniqseo
    Hey if your site in wordpress then there is a option to create 301 redirect use it.
    {{ DiscussionBoard.errors[3659310].message }}

Trending Topics