Search Engine Optimization
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignSearch Engine Optimization

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 21st, 2005, 05:11 AM
kunalsethi kunalsethi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Location: India
Posts: 122 kunalsethi User rank is Private First Class (20 - 50 Reputation Level)kunalsethi User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 13 h 38 m 26 sec
Reputation Power: 5
Send a message via MSN to kunalsethi Send a message via Yahoo to kunalsethi
How to remover "?id=" in php, because google is not reading the page

Hi,

Acutally i have read in many acrticles that google and other search engine faces problem in crawling pages with "?id=" in php. So is there a way i can remove that?

Like in this page
http://www.discoverydreams.com/temp/li/index.php?id=1

How to remove "?id=1"

Thanks

Reply With Quote
  #2  
Old November 21st, 2005, 08:28 AM
ran_dizolph's Avatar
ran_dizolph ran_dizolph is offline
from the lab...
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2004
Location: the land of wind and ghosts
Posts: 1,568 ran_dizolph User rank is First Lieutenant (10000 - 20000 Reputation Level)ran_dizolph User rank is First Lieutenant (10000 - 20000 Reputation Level)ran_dizolph User rank is First Lieutenant (10000 - 20000 Reputation Level)ran_dizolph User rank is First Lieutenant (10000 - 20000 Reputation Level)ran_dizolph User rank is First Lieutenant (10000 - 20000 Reputation Level)ran_dizolph User rank is First Lieutenant (10000 - 20000 Reputation Level)ran_dizolph User rank is First Lieutenant (10000 - 20000 Reputation Level)ran_dizolph User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 2 Weeks 5 Days 8 h 18 m 53 sec
Reputation Power: 142
they're called 'mod_rewrites'...if you google it, you should be able to find a couple of tutorials.

hope that helps.
__________________
if i've been helpful, please add to my reputation.
http://www.gpwebsolutions.com
my band's myspace site

Reply With Quote
  #3  
Old November 21st, 2005, 09:30 AM
Thr3ddy's Avatar
Thr3ddy Thr3ddy is offline
Harbinger of Harbingers
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2004
Location: Coral Springs, Florida, USA
Posts: 891 Thr3ddy User rank is Captain (20000 - 30000 Reputation Level)Thr3ddy User rank is Captain (20000 - 30000 Reputation Level)Thr3ddy User rank is Captain (20000 - 30000 Reputation Level)Thr3ddy User rank is Captain (20000 - 30000 Reputation Level)Thr3ddy User rank is Captain (20000 - 30000 Reputation Level)Thr3ddy User rank is Captain (20000 - 30000 Reputation Level)Thr3ddy User rank is Captain (20000 - 30000 Reputation Level)Thr3ddy User rank is Captain (20000 - 30000 Reputation Level)Thr3ddy User rank is Captain (20000 - 30000 Reputation Level)  Folding Points: 53743 Folding Title: Beginner FolderFolding Points: 53743 Folding Title: Beginner FolderFolding Points: 53743 Folding Title: Beginner Folder
Time spent in forums: 1 Week 6 Days 7 h 57 m 20 sec
Reputation Power: 273
Create a file called .htaccess and do something similar to this:

Code:
RewriteEngine On
RewriteRule ^short/([0-9])/$ http://www.discoverydreams.com/temp/li/index.php?id=$1
RewriteRule ^short/([0-9])$ http://www.discoverydreams.com/temp/li/index.php?id=$1


And fix all the links on your site.
__________________
Regards,
E. Luten.

Information: C, C++, STL, Boost, OpenMP, Scriptionary, Google
Book of the moment: Mastering Algorithms with C by Kyle Loudon

Reply With Quote
  #4  
Old November 22nd, 2005, 05:44 AM
kunalsethi kunalsethi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Location: India
Posts: 122 kunalsethi User rank is Private First Class (20 - 50 Reputation Level)kunalsethi User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 13 h 38 m 26 sec
Reputation Power: 5
Send a message via MSN to kunalsethi Send a message via Yahoo to kunalsethi
Quote:
Originally Posted by Thr3ddy
Create a file called .htaccess and do something similar to this:

Code:
RewriteEngine On
RewriteRule ^short/([0-9])/$ http://www.discoverydreams.com/temp/li/index.php?id=$1
RewriteRule ^short/([0-9])$ http://www.discoverydreams.com/temp/li/index.php?id=$1


And fix all the links on your site.


Hi,

Thanks. i created a file .htaccess with above content in /temp/li/ folder both nothings seems to changed. the same "?id=" is appearing

http://www.discoverydreams.com/temp/li/
http://www.discoverydreams.com/temp/li/index.php?id=1


Please have a look

One thing i forgot to mention I have a Windows Hosting with IIS6.0, so apache will not work

Thanks

Reply With Quote
  #5  
Old November 23rd, 2005, 08:15 AM
chadsmith729's Avatar
chadsmith729 chadsmith729 is offline
--Retired--
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Sep 2003
Location: Enjoying forum retirement.
Posts: 3,113 chadsmith729 User rank is General (90000 - 100000 Reputation Level)chadsmith729 User rank is General (90000 - 100000 Reputation Level)chadsmith729 User rank is General (90000 - 100000 Reputation Level)chadsmith729 User rank is General (90000 - 100000 Reputation Level)chadsmith729 User rank is General (90000 - 100000 Reputation Level)chadsmith729 User rank is General (90000 - 100000 Reputation Level)chadsmith729 User rank is General (90000 - 100000 Reputation Level)chadsmith729 User rank is General (90000 - 100000 Reputation Level)chadsmith729 User rank is General (90000 - 100000 Reputation Level)chadsmith729 User rank is General (90000 - 100000 Reputation Level)chadsmith729 User rank is General (90000 - 100000 Reputation Level)chadsmith729 User rank is General (90000 - 100000 Reputation Level)chadsmith729 User rank is General (90000 - 100000 Reputation Level)chadsmith729 User rank is General (90000 - 100000 Reputation Level)chadsmith729 User rank is General (90000 - 100000 Reputation Level)chadsmith729 User rank is General (90000 - 100000 Reputation Level)  Folding Points: 285523 Folding Title: Super Ultimate Folder - Level 1Folding Points: 285523 Folding Title: Super Ultimate Folder - Level 1Folding Points: 285523 Folding Title: Super Ultimate Folder - Level 1Folding Points: 285523 Folding Title: Super Ultimate Folder - Level 1Folding Points: 285523 Folding Title: Super Ultimate Folder - Level 1Folding Points: 285523 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 1 Month 16 h 46 m 22 sec
Reputation Power: 925
Just as a side note IIS6 will work with PHP.
http://forums.session9.co.uk/showthread.php?t=262

Just thought I would throw that out to you, and yes I realize this has nothing to do with your problem.
Chad
__________________
Get A Supplier LLC | Hilarious Comic

--- Pretty much retired from the forum. I will get back on every now and then, and maybe answer a few questions.

Last edited by chads2k2 : November 23rd, 2005 at 08:15 AM. Reason: I first said Apache, instead of PHP. lol, I'm dumb.

Reply With Quote
  #6  
Old November 24th, 2005, 12:59 AM
Catacaustic's Avatar
Catacaustic Catacaustic is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Location: A Land Down Under
Posts: 395 Catacaustic User rank is Second Lieutenant (5000 - 10000 Reputation Level)Catacaustic User rank is Second Lieutenant (5000 - 10000 Reputation Level)Catacaustic User rank is Second Lieutenant (5000 - 10000 Reputation Level)Catacaustic User rank is Second Lieutenant (5000 - 10000 Reputation Level)Catacaustic User rank is Second Lieutenant (5000 - 10000 Reputation Level)Catacaustic User rank is Second Lieutenant (5000 - 10000 Reputation Level)Catacaustic User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 5 Days 1 h 15 m 29 sec
Reputation Power: 54
I'd suggest re-naming the variable that you're passing. Instead of "?id=4" change the variables name to "?product=4" or something similar.

Google and other SE's hate URL variables with "id" in the because they see this as a session ID, so they take it as worthless and won't index the page. When the variable is called something different, the SE's take it as a real variable and will index the page a lot easier.

Doing this may not be 100% as good as a mod-rewrite, but working on a Windoes server, rewriting isn't as easy as on Apache, and with this you'll be doing 90-95% as well.
Comments on this post
chadsmith729 agrees: Good thought, here is a point for you!

Reply With Quote
  #7  
Old December 1st, 2005, 05:32 AM
kunalsethi kunalsethi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Location: India
Posts: 122 kunalsethi User rank is Private First Class (20 - 50 Reputation Level)kunalsethi User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 13 h 38 m 26 sec
Reputation Power: 5
Send a message via MSN to kunalsethi Send a message via Yahoo to kunalsethi
Thanks all for the help. I contacted my web hosting company, they have told that mod-rewrite is not possible on windows, so i think i would try Catacaustic comments, if that could help

Thanks again

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignSearch Engine Optimization > How to remover "?id=" in php, because google is not reading the page


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT