Mobile page for old non-responsive sites

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Smart Fred
    Confirmed User
    • Mar 2008
    • 308

    #1

    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
    Stop doing what you like and start doing what brings you money!
  • alastik
    Registered User
    • Mar 2017
    • 50

    #2
    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.

    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

    Comment

    • Smart Fred
      Confirmed User
      • Mar 2008
      • 308

      #3
      Thanks Alastik ;)
      Stop doing what you like and start doing what brings you money!

      Comment

      Working...