StatCounter User Forum  
StatCounter Free web tracker and counter

Go Back   StatCounter User Forum > Webmaster > Lounge (non-StatCounter related topics here!)

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 04-26-2012, 12:48 AM
rotarysteve rotarysteve is offline
Master Member
 
Join Date: Aug 2005
Location: Ohio
Posts: 1,879
Default Opinion's needed

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  
Old 04-26-2012, 07:13 PM
webmonkey webmonkey is offline
Member
 
Join Date: Dec 2011
Location: london
Posts: 118
Default

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  
Old 04-27-2012, 12:54 AM
rotarysteve rotarysteve is offline
Master Member
 
Join Date: Aug 2005
Location: Ohio
Posts: 1,879
Default

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  
Old 04-27-2012, 03:17 PM
webmonkey webmonkey is offline
Member
 
Join Date: Dec 2011
Location: london
Posts: 118
Default

Quote:
Originally Posted by rotarysteve View Post
Have you any luck with htaccess?
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?
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:14 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.