google only wap2 links

Started by sombra, September 23, 2009, 08:21:31 PM

Previous topic - Next topic

ɔɔɔɔɔɔuɥoɾ

I have not reviewed your robots.txt, it could be perfect, I only noticed that you did not block the mobile content, you know, Google webmaster tools does have a robots.txt generator, you could use that for controlling which bots index your site


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

sombra

Quotenot block the mobile content

i did not blok it i thinked that i did

i know about google tools but i dont know hot to use it hehe

Dannii

If google prefers your wap2 pages over your normal pages it is probably because they are simple and structured better than your normal pages. So, install a clean semantic theme.
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

sombra

QuoteI'm confused :P Do you want to mark this topic "solved" and start a more detailed topic in the SMF 2.x board?

friend you havent even said somthing to help the discution and you already want it to be solved? do you will get paid or somthing lol

Quotemore detailed topic in the SMF 2.x board?

the topic its on SMF 2.x board and it can be more detailed my problem are wap2 links you just need to read from the 1 page you will get the point

QuoteIf google prefers your wap2 pages over your normal pages it is probably because they are simple and structured better than your normal pages. So, install a clean semantic theme.

heres and good pont to discuz so your saying DarkBreak by DzinerStudio its a bad theme and nobody its recomended to use it if they use it they will get the same problem?

thanks all for the interest in the topic your all welcome :D


Aleksi "Lex" Kilpinen

Hi sombra, if you are referring to your site http://todoilegal.net then I can assure you that google is indexing your regular pages just fine.

http://www.google.com/search?hl=fi&rls=com.microsoft%3Afi&q=site%3Atodoilegal.net&lr=

All I see, are correct results to full page views. Is this still an issue for you?
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

ɔɔɔɔɔɔuɥoɾ

Its definitely confirmed now, robots.txt is definitely blocking mobile content (wap link) using the code I said before, its been a few more weeks and I can see myself from 2 pages of normal links in a row to 4 pages now.

I think your topic is confirmed solved now :)


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

sombra

yes friend i notice the same thing now normal pages are getting indexed

i got to say the same thing thanks and i think now problem solved :D


smonk

Quote from: king001001 on September 26, 2009, 03:37:49 AM
first you need to make a back up of "INDEX.PHP"

Step 1:


open "INDEX.PHP",then find and remove the following code

// Determine if this is using WAP
, WAP2, or imode.  Technically, we should check that wap comes before application/xhtml or text/html, but this doesn't work in practice as much as it should.
if (isset($_REQUEST['nowap']))
$_SESSION['nowap'] = true;
elseif (!isset($_SESSION['nowap']))
{
if (isset($_SERVER['HTTP_ACCEPT']) && strpos($_SERVER['HTTP_ACCEPT'], 'application/vnd.wap.xhtml+xml') !== false)
$_REQUEST['wap2'] = 1;
elseif (isset($_SERVER['HTTP_ACCEPT']) && strpos($_SERVER['HTTP_ACCEPT'], 'text/vnd.wap.wml') !== false)
{
if (strpos($_SERVER['HTTP_USER_AGENT'], 'DoCoMo/') !== false || strpos($_SERVER['HTTP_USER_AGENT'], 'portalmmm/') !== false)
$_REQUEST['imode'] = 1;
else
$_REQUEST['wap'] = 1;
}
}

if (!defined('WIRELESS'))
define('WIRELESS', isset($_REQUEST['wap']) || isset($_REQUEST['wap2']) || isset($_REQUEST['imode']));

// Some settings and headers are different for wireless protocols.
if (WIRELESS)
{
define('WIRELESS_PROTOCOL', isset($_REQUEST['wap']) ? 'wap' : (isset($_REQUEST['wap2']) ? 'wap2' : (isset($_REQUEST['imode']) ? 'imode' : '')));


Step 2:

now paste this code

if (!defined('WIRELESS'))
define('WIRELESS', isset($_REQUEST['index.php']) || isset($_REQUEST['index.php']) || isset($_REQUEST['index.php']));

// Some settings and headers are different for wireless protocols.
if (WIRELESS)
{
define('WIRELESS_PROTOCOL', isset($_REQUEST['index.php']) ? 'wap' : (isset($_REQUEST['index.php']) ? 'wap2' : (isset($_REQUEST['index.php']) ? 'imode' : '')));



it will works 100% fine

that works like a charm.

great work.  my site gets the wap indexing from the search engines, but non-WAP users see the real pages.

thanks.

smonk

I am still running SMF 1.1.11, by the way

Eswar

I think this is common one. Take this topic add with /?wap2

http://www.simplemachines.org/community/index.php?topic=338291.20/?wap2

So we need to prevent it in robots.txt i think.

Advertisement: