Forum Moderators: open

Message Too Old, No Replies

Does GoogleBot read Variable from include file

         

Sinner_G

9:18 am on Aug 22, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The title tag of a page looks like this:

<title><%=PageTitle%></title>

The PageTitle part is defined in an include (virtual) file.

Now when I search in Google, the title of the page is its URL. Does that mean googlebot doesn't get the variable?

Brett_Tabke

9:19 am on Aug 22, 2002 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



It's whatever you see in the browser. Just look at the source code.

bcc1234

9:20 am on Aug 22, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Go to that page and view the source. Google sees the same thing.

Sinner_G

9:24 am on Aug 22, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, I thought that would be it, but the title is in the source, so why isn't it in the search result?

bcc1234

9:31 am on Aug 22, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, I thought that would be it, but the title is in the source, so why isn't it in the search result?

Wait till the update is over for sure and then start guessing :)

Brett_Tabke

6:52 am on Sep 1, 2002 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Because the brackets are there and unless they are transposed into &gt;/&lt; then it gets zapped.

This is why you should always validate your pages...

nutsandbolts

9:35 am on Sep 1, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<title><%=PageTitle%></title>

Shouldn't that be

<title><%PageTitle%></title>

(drop the = sign)

It should work now when you build the pages...

bcc1234

1:37 pm on Sep 1, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Actually, <%= varName %> would be a valid jsp statement, unless he is using php - he is correct.

savvy1

1:42 pm on Sep 1, 2002 (gmt 0)

10+ Year Member



Google does not go around your server reading files .. It browses your pages in (almost) the same way any other web browser does and so sees the .html source regardless of how it is generated on your rearend

nutsandbolts

3:28 pm on Sep 1, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Or unless he is using Links which is written in Perl... Sinner_G, what code are you using?

Sinner_G

10:27 am on Sep 16, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That's ASP code. AFAIK it is correct.