Search engines with my PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
monkeyreview
Forum Newbie
Posts: 5
Joined: Fri May 03, 2002 8:33 pm
Location: Canada

Search engines with my PHP

Post by monkeyreview »

Hey Guys,
Having a real major problem, my site is working fine, the problem is google is not crawling it properly. For instance it finds all pages and all URLS except for all my reviews, what it finds instead is this
Url: /reviews/index.php%3Faction=fullreview&id=1
the %3F should simply be a ? mark, this is only google that has this problem and another section of my site is fine and it was built using the smae ideas as the review section.....any ideas?
GOOD URL: http://www.monkeyreview.com/news/index. ... full&ID=94

BAD URL: http://www.monkeyreview.com/reviews/ind ... iew&id=114

With the second in my logs it shows:
http://www.monkeyreview.com/reviews/ind ... view&id=63

It should be:
index.php?action=fullreview&id=63
Jim
Forum Contributor
Posts: 238
Joined: Fri Apr 19, 2002 5:26 am
Location: Near Austin, Texas

Post by Jim »

You're from monkey review?

have you done a review of Rise of Nations yet? If so, contact me and I'll put it up on my page (http://www.rise-of-nations.net).

Sorry, I can't help ya with the engine :(
monkeyreview
Forum Newbie
Posts: 5
Joined: Fri May 03, 2002 8:33 pm
Location: Canada

ANyone Please

Post by monkeyreview »

I am the owner, of MonkeyReview, as of yet we have not done a review on that game but anticipate us being able to catch up on older games shortly, My problem is still there, does anyone know why or how my script would have changed the ? to the unicode %3F?? I think the root of my problem is in my code.....any idea what i would be looking for? :(
User avatar
EvilWalrus
Site Admin
Posts: 209
Joined: Thu Apr 18, 2002 3:21 pm
Location: Springmont, PA USA

Post by EvilWalrus »

looks like you might be using rawurlencode() on the entire URL... you should only encode the query string (or values thereof) and try to use urlencode() as a replacement...
monkeyreview
Forum Newbie
Posts: 5
Joined: Fri May 03, 2002 8:33 pm
Location: Canada

okay.....

Post by monkeyreview »

:( okay well i have narrowed it down to my source, simple and perhaps stupid question, in php is a href=http://www.monkeyreview.com/reviews/index.php?action=.........
good?
or does it NEED to be a href=reviews/index.php?action=...........
any idea on this
jason
Site Admin
Posts: 1767
Joined: Thu Apr 18, 2002 3:14 pm
Location: Montreal, CA
Contact:

Post by jason »

Both ways are fine and work in the same manner.
monkeyreview
Forum Newbie
Posts: 5
Joined: Fri May 03, 2002 8:33 pm
Location: Canada

yeah.....

Post by monkeyreview »

Thats what i thought, just cant figure this all out and was looking for anything at all that would shed some light on it...
jason
Site Admin
Posts: 1767
Joined: Thu Apr 18, 2002 3:14 pm
Location: Montreal, CA
Contact:

Post by jason »

The thing is %3F is the hex coding for ?.

Put your mouse over this:

http://www.monkeyreview.com/reviews/ind ... view&id=63

And look at the status bar, and you will see it turns the %3F into a ?.

I would suggest looking at your own code, to see if you do any urlencodes and what not. I don't know why Google would pick it up like that.
monkeyreview
Forum Newbie
Posts: 5
Joined: Fri May 03, 2002 8:33 pm
Location: Canada

nadda

Post by monkeyreview »

no urlencode anything you know of that could do it? doing searches through the code to find it.
User avatar
gotDNS
Forum Contributor
Posts: 217
Joined: Tue May 07, 2002 5:53 pm
Location: West Chester, PA

Post by gotDNS »

Sorry to bug you, but i noticed in your title that you said "my PHP"....since when was PHP yours!? lol. Mine.
Aaron
Forum Commoner
Posts: 82
Joined: Sun May 12, 2002 2:51 pm

Post by Aaron »

Monkey Review ai, i got your email about max payne a few weeks ago, posted on planetmaxpayne.com now ;)
Post Reply