#1
  1. Retired
    Devshed Supreme Being (6500+ posts)

    Join Date
    Feb 2002
    Location
    Finland
    Posts
    9,143
    Rep Power
    2493

    Question Stop Google Wireless from viewing pre-detected pages in its version


    As you may or may not know, you can view any web page (almost) that is found through google search in a scaled down version.

    I have my site set up so it renders content according to accept_type.
    However, when I view pages on my phone that were found by google, I get an abbreviated version of the html version.

    I want to be able to redirect somehow to the actual wap (xhtml MP) page without relying on the user clicking on the "view in original format" link that is provided at the foot of the page.

    I am using PHP currently to do the detection,
    but thought that htaccess would be the way forward.
    htaccess Code:
    RewriteEngine On
    RewriteCond %{HTTP_USER_AGENT} ^Google(.*)Wireless
    RewriteRule ^(.*)$ index.php5?q=$1 [L,QSA]


    However, I feel this may cause an infinite loop. How do people do this currently?

    Cheers,
    Jamie

    >_ skiFFie ? | Twitter

    __________________

    Let the might of your compassion arise to bring a quick end
    to the flowing stream of the blood and tears .....
    Please hear my anguished words of truth.

    __________________
  2. #2
  3. Retired
    Devshed Supreme Being (6500+ posts)

    Join Date
    Feb 2002
    Location
    Finland
    Posts
    9,143
    Rep Power
    2493
    To answer my own question,
    adding the following to the head of my document was sufficient.
    html4strict Code:
    <link rel="alternate" media="handheld" href="alternate page" />


    Hope this helps someone in the future.

    Cheers,
    Jamie

    >_ skiFFie ? | Twitter

    __________________

    Let the might of your compassion arise to bring a quick end
    to the flowing stream of the blood and tears .....
    Please hear my anguished words of truth.

    __________________
  4. #3
  5. .... escape ....
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2004
    Posts
    448
    Rep Power
    17
    Thank this has been annoying me to.

    How ever I just tried the line in the head and google just says server error.
  6. #4
  7. Retired
    Devshed Supreme Being (6500+ posts)

    Join Date
    Feb 2002
    Location
    Finland
    Posts
    9,143
    Rep Power
    2493
    May be something to do with the way they cache pages -
    what is the default content type of the page you are trying to protect?

    You know you can test the wireless transcoder through the following url:
    http://www.google.com/gwt/n?u=yourdomain.com

    Cheers,
    Jamie

    >_ skiFFie ? | Twitter

    __________________

    Let the might of your compassion arise to bring a quick end
    to the flowing stream of the blood and tears .....
    Please hear my anguished words of truth.

    __________________

IMN logo majestic logo threadwatch logo seochat tools logo