GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Webmaster Q & Fuckin' A (https://gfy.com/forumdisplay.php?f=27)
-   -   Disallow m.slipperyonion.com (https://gfy.com/showthread.php?t=1103722)

Kostly 03-20-2013 10:34 AM

Disallow m.slipperyonion.com
 
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?

Paz 03-25-2013 08:25 AM

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.

Kostly 03-25-2013 08:30 AM

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.

Tent Pitcher 03-26-2013 10:40 PM

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.

PeR930 03-27-2013 02:07 AM

I don't think you understand correctly tent pitcher.

Kosty just use the canonical tag on your mobile pages to point to the same page on the main site.

Kostly 03-27-2013 05:35 AM

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.

PeR930 03-27-2013 10:44 AM

Its not an infinite loop unless you also use canonical from main site to mobile, so dont do that way. The canonical is only for search engines. Your htaccess is only for users.

PeR930 03-27-2013 10:45 AM

Or put meta robots noindex on all your m.slipperyonion pages, but canonical is better.


All times are GMT -7. The time now is 06:31 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc