GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Mobile page for old non-responsive sites (https://gfy.com/showthread.php?t=1259053)

Smart Fred 04-23-2017 10:04 AM

Mobile page for old non-responsive sites
 
Hi guys,

As many of you, I've got a lot of old TGPs which have not been built for mobile traffic.
So for years I've sold mobile traffic to plugrush.
But now I've got a lot of responsive blogs on other domains.

So what's the correct way to drive mobile traffic to my responsive blogs from my TGPs without getting hurt by Google.

I was thinking creating a simple mobile page that links to all my mobile sites.
Is it a correct way to do it?

And what's the correct htaccess way to drive mobile traffic on a domain to a specific page?

Thanks for your help.

Fred

alastik 04-24-2017 12:50 PM

This code in your .htaccess will redirect based on the MIME types the user's browser supports.

Code:

RewriteEngine On
# Mobile check
RewriteCond %{HTTP_ACCEPT} "text\/vnd\.wap\.wml|application\/vnd\.wap\.xhtml\+xml" [NC]
RewriteCond %{REQUEST_URI} ^/$
RewriteRule ^ your domain full url%{REQUEST_URI} [R,L]

Note - This requires mod_rewrite to be enabled on your server.

Quote:

And what's the correct htaccess way to drive mobile traffic on a domain to a specific page?
A simple 301 Redirect should do the trick and should not piss off Google.

Code:

redirect 301 oldpageurl (eg - /directory/file.html/php/whatever)
httpfullurlofnewpage


Smart Fred 04-25-2017 01:41 AM

Thanks Alastik ;)


All times are GMT -7. The time now is 02:39 PM.

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