darkchanter
Posts: 3
Joined: 29 Jun 09
Trust:
10 Jul 09 8:47 am
URL Canonicalization Lesson
I was reading the lesson on the similar title and I (may) have a way to use both:
You can write some javaScript (or PHP, I suppose) to redirect from the one to the other. Let's say the mydomain.com is your SEO site, put the following javascript in the HTML header (above the robots meta tag):
As the lesson/article points out, many people will not bother to type the www, they'll go straight to "mydomain.com"; however folks like me will type "mydomain" in their browser and press crtl+enter (which fills in the "www." and ".com" for one and then browses to the site).
I haven't tested this. Does anyone know if search engine spiders will see this as
bad linking?
Last edited by faradina on 14 Jul 09 10:26 am, edited 1 time in total.
Reason: make title relevant to content