1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Just a little help with a redirect issue please

Discussion in 'White Hat SEO' started by Ramsweb, Jan 13, 2012.

  1. Ramsweb

    Ramsweb Senior Member

    Joined:
    Mar 31, 2010
    Messages:
    1,121
    Likes Received:
    658
    Occupation:
    Internet Marketer - Self Employed
    Location:
    In front of my PC
    Hello

    I have a HTML site that has a canonical URL problem. My index page is fine.

    But, a couple of my inner pages have some bad URL's where I have used a capital letter in the URL.

    If I type in the inner page URL without the caps, I get a page not found error. I might have also built a lot of backlinks to the wrong url, with the capital letter on.

    Can you please give me some direction on how I can fix it.

    P.S. - I did a rel canonical insert. Will that be enough to fix the issue? The page is not redirecting with the rel canonical fix though.

    Thanks
    Ramsweb
     
  2. crosscheck

    crosscheck Regular Member

    Joined:
    Aug 12, 2010
    Messages:
    412
    Likes Received:
    221
    Occupation:
    The Boss
    Location:
    West Coast EH
    You can re create the page with proper url. Do a 301 redirect to the new page and what ever BL you have built to the incorrect url will pass over to the new url. rel canonical won't re direct.
     
    • Thanks Thanks x 1
  3. Ramsweb

    Ramsweb Senior Member

    Joined:
    Mar 31, 2010
    Messages:
    1,121
    Likes Received:
    658
    Occupation:
    Internet Marketer - Self Employed
    Location:
    In front of my PC
    Can anybody tell me how to do 301 redirects for individual pages. I don't want to redirect the index or other pages on this website. Just the 3 inner URL's that have this problem
     
  4. Sharon Martin

    Sharon Martin Newbie

    Joined:
    Nov 30, 2011
    Messages:
    39
    Likes Received:
    3
    So you have a page with unwanted URL, its very simple to redirect the page to some other URL using 301 redirect.

    That won't harm your inner page in any way.
    I believe, you don't need a canonical tag here... Because, ultimately, its about the user... A user should find this inner page easily.
     
    • Thanks Thanks x 1
  5. crosscheck

    crosscheck Regular Member

    Joined:
    Aug 12, 2010
    Messages:
    412
    Likes Received:
    221
    Occupation:
    The Boss
    Location:
    West Coast EH
    Hey Ramsweb you can either do a 301 for your pages by cpanel if you have this option with your hosting or via htaccess if just ftp. Simple to do from cpanel there is a redirect option in the menu options. If you go ftp route and edit htaccess just download and backup. Open it up and add this below what ever is in there for each url you want to redirect
    Code:
    redirect 301 /old/old.htm http://www.you.com/new.htm
    
    

    Do not to add "hxxp://www" to the first part of the redirected url just put the path from the top level of your site to the page. Also ensure that you leave a single space between redirect 301 and /old/old.htm and same between new urls
     
    • Thanks Thanks x 1
    Last edited: Jan 13, 2012
  6. Ramsweb

    Ramsweb Senior Member

    Joined:
    Mar 31, 2010
    Messages:
    1,121
    Likes Received:
    658
    Occupation:
    Internet Marketer - Self Employed
    Location:
    In front of my PC
    Fixed this. Hostgator cpanel has a super easy option to do a 301, at domain level and for individual urls as well. No need to write complicated htaaccess files or any other code. Just FYI for newbies who might have this problem.
     
  7. nanexo

    nanexo BANNED BANNED

    Joined:
    Feb 14, 2010
    Messages:
    873
    Likes Received:
    187
    You can fixed it using 301 redirect.

    *To redirect ALL files on your domain use this in your
    .htaccess file if you are on a unix web server:

    redirectMatch 301 ^(.*)$ http://www.yourdomain.com
    redirectMatch permanent ^(.*)$ http://www.yourdomain.com

    You can also use one of these in your .htaccess file:

    redirect 301 /index.html http://www.yourdomain.com/index.html
    redirect permanent /index.html http://www.yourdomain.com/index.html
    redirectpermanent /index.html http://www.yourdomain.com/index.html

    This will redirect "index.html" to another domain using a
    301-Moved permanently redirect.

    *If you need to redirect http://mysite.com to
    http://www.mysite.com and you've got mod_rewrite enabled on
    your server you can put this in your .htaccess file:

    Options +FollowSymLinks
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^example\.com
    RewriteRule ^(.*)$ http://www.example.com/$1 [R=permanent,L]

    *If you want to redirect your .htm pages to .php pages
    andd you've got mod_rewrite enabled on your server you can
    put this in your .htaccess file:

    RewriteEngine on
    RewriteBase /
    RewriteRule (.*).htm$ /$1.php

    *If you wish to redirect your .html or .htm pages to
    .shtml pages because you are using Server Side Includes
    (SSI) add this code to your .htaccess file:

    AddType text/html .shtml
    AddHandler server-parsed .shtml .html .htm
    Options Indexes FollowSymLinks Includes
    DirectoryIndex index.shtml index.html


    Hope this will help.
     
    • Thanks Thanks x 1