How do I tell google that m.slipperyonion.com is identicle to slipperyonion.com and to revert back to slipperyonion.com when a link lists m.slipperyonion.com?
Disallow m.slipperyonion.com
Collapse
X
-
Disallow m.slipperyonion.com
Tags: None -
Hi,
You can't do both and still have the two site indexed. I think your best bet would be to follow advice for webmasters and use hidden meta tags as follows;
On the www site have tags such as;
<link rel="alternate" media="only screen and (max-width: 640px)" href="http://m.example.com/page-1" >
and on the mobile page, have an equivalent tag on the equivalent page:
<link rel="canonical" href="http://www.example.com/page-1" >
Or you can send similar signals with sitemaps (click here)
If you want to leverage the link weight pointing from the m site to the www as well, then I think the best way would be to just link though from the mobile site.
Cheers,
Paz. -
Thanks, what I ultimately want is a way to have juicyads mobile .htaccess code redirect only once every few days based on a cookie (set in .htaccess). Essentially
If MobileCookie Exists then do nothing
else Set MobileCookie = 72 hours and if mobile redirect.
It hasn't been easy and I have tried paying someone to do it with little to no luck.Last edited by Kostly; 03-25-2013, 07:32 AM.Comment
-
If I understand correctly, you need to redirect any inbound traffic directed at your mobile site to your actual site. I would add something silimar to your .htaccess:
RewriteCond %{SERVER_NAME} ^m\.slipperyonion\.com$
RewriteRule .? http://www.slipperyonion.com [L,R=301]
Hit me up or reply here if you need a more detailed explanation.Tent Pitcher - Adult Search EngineComment
-
Ill get an infinate loop. Currently I have a redirect that is going to m.slipperyonion.com if they are mobile. What I want is to have one site, slipperyonion.com and no mobile site but still redirect people via htaccess.Comment

Comment