Opinion's needed

Discussion in 'Lounge (non-StatCounter related topics here!)' started by rotarysteve, Apr 26, 2012.

Thread Status:
Not open for further replies.
  1. rotarysteve

    rotarysteve New Member

    Joined:
    Aug 27, 2005
    Messages:
    1,885
    Likes Received:
    0
    Just need to ask about what is felt about using the following in the head of my site. Idea is to point out that I prefer this url as opposed to using the same with a trailing slash. This is on a XHTML Strict page.

    <link rel="canonical" href="http://www.me_ye_ol_domain.org/aboutmysite.htm" />

    pro's and con's
     
  2. webmonkey

    webmonkey New Member

    Joined:
    Dec 1, 2011
    Messages:
    123
    Likes Received:
    0
    Not entirely sure what you're trying to achieve with this, but IMV it's better to do this in htaccess if you can, perhaps with a 301?
     
  3. rotarysteve

    rotarysteve New Member

    Joined:
    Aug 27, 2005
    Messages:
    1,885
    Likes Received:
    0
    Just a little SEO. I'd like to try the htaccess but have little luck with it. Must be the host, but is on Apache. Have you any luck with htaccess?
     
  4. webmonkey

    webmonkey New Member

    Joined:
    Dec 1, 2011
    Messages:
    123
    Likes Received:
    0
    Yes. I've used and do use 301 redirects for pages that have been deleted and to ensure google and other SE's don't duplicate content by indexing www.example.com and http://www.example.com, i.e.

    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^www.example.com$ [NC]
    RewriteRule ^(.*)$ http://www.example.com/$1 [R,L]

    I also use htaccess to prevent hotlinking and block specific IP's from our sites.

    Hope that helps?
     
Thread Status:
Not open for further replies.

Share This Page