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, 06: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: 6
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, 09: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,710 ran_dizolph User rank is Captain (20000 - 30000 Reputation Level)ran_dizolph User rank is Captain (20000 - 30000 Reputation Level)ran_dizolph User rank is Captain (20000 - 30000 Reputation Level)ran_dizolph User rank is Captain (20000 - 30000 Reputation Level)ran_dizolph User rank is Captain (20000 - 30000 Reputation Level)ran_dizolph User rank is Captain (20000 - 30000 Reputation Level)ran_dizolph User rank is Captain (20000 - 30000 Reputation Level)ran_dizolph User rank is Captain (20000 - 30000 Reputation Level)ran_dizolph User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 3 Weeks 22 h 11 m 42 sec
Reputation Power: 301
they're called 'mod_rewrites'...if you google it, you should be able to find a couple of tutorials.

hope that helps.

Reply With Quote
  #3  
Old November 21st, 2005, 10:30 AM
Thr3ddy's Avatar
Thr3ddy Thr3ddy is offline
EREIAMJH
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2004
Location: Ring 0
Posts: 997 Thr3ddy User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Thr3ddy User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Thr3ddy User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Thr3ddy User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Thr3ddy User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Thr3ddy User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Thr3ddy User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Thr3ddy User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Thr3ddy User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Thr3ddy User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Thr3ddy User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)  Folding Points: 131862 Folding Title: Super Ultimate Folder - Level 1Folding Points: 131862 Folding Title: Super Ultimate Folder - Level 1Folding Points: 131862 Folding Title: Super Ultimate Folder - Level 1Folding Points: 131862 Folding Title: Super Ultimate Folder - Level 1Folding Points: 131862 Folding Title: Super Ultimate Folder - Level 1Folding Points: 131862 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 2 Weeks 1 Day 15 h 24 m 23 sec
Reputation Power: 460
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, My F@H, Turbo C = Bad

Reply With Quote
  #4  
Old November 22nd, 2005, 06: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: 6
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, 09: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,122 chadsmith729 User rank is General 1st Grade (Above 100000 Reputation Level)chadsmith729 User rank is General 1st Grade (Above 100000 Reputation Level)chadsmith729 User rank is General 1st Grade (Above 100000 Reputation Level)chadsmith729 User rank is General 1st Grade (Above 100000 Reputation Level)chadsmith729 User rank is General 1st Grade (Above 100000 Reputation Level)chadsmith729 User rank is General 1st Grade (Above 100000 Reputation Level)chadsmith729 User rank is General 1st Grade (Above 100000 Reputation Level)chadsmith729 User rank is General 1st Grade (Above 100000 Reputation Level)chadsmith729 User rank is General 1st Grade (Above 100000 Reputation Level)chadsmith729 User rank is General 1st Grade (Above 100000 Reputation Level)chadsmith729 User rank is General 1st Grade (Above 100000 Reputation Level)chadsmith729 User rank is General 1st Grade (Above 100000 Reputation Level)chadsmith729 User rank is General 1st Grade (Above 100000 Reputation Level)chadsmith729 User rank is General 1st Grade (Above 100000 Reputation Level)chadsmith729 User rank is General 1st Grade (Above 100000 Reputation Level)chadsmith729 User rank is General 1st Grade (Above 100000 Reputation Level)  Folding Points: 298235 Folding Title: Super Ultimate Folder - Level 1Folding Points: 298235 Folding Title: Super Ultimate Folder - Level 1Folding Points: 298235 Folding Title: Super Ultimate Folder - Level 1Folding Points: 298235 Folding Title: Super Ultimate Folder - Level 1Folding Points: 298235 Folding Title: Super Ultimate Folder - Level 1Folding Points: 298235 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 1 Month 19 h 29 m 21 sec
Reputation Power: 1021
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 09:15 AM. Reason: I first said Apache, instead of PHP. lol, I'm dumb.

Reply With Quote
  #6  
Old November 24th, 2005, 01:59 AM
Catacaustic's Avatar
Catacaustic Catacaustic is offline
Code Monkey V. 0.9
Dev Shed Novice (500 - 999 posts)
 
Join Date: Mar 2005
Location: A Land Down Under
Posts: 574 Catacaustic User rank is First Lieutenant (10000 - 20000 Reputation Level)Catacaustic User rank is First Lieutenant (10000 - 20000 Reputation Level)Catacaustic User rank is First Lieutenant (10000 - 20000 Reputation Level)Catacaustic User rank is First Lieutenant (10000 - 20000 Reputation Level)Catacaustic User rank is First Lieutenant (10000 - 20000 Reputation Level)Catacaustic User rank is First Lieutenant (10000 - 20000 Reputation Level)Catacaustic User rank is First Lieutenant (10000 - 20000 Reputation Level)Catacaustic User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Week 9 h 6 m 45 sec
Reputation Power: 157
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, 06: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: 6
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




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

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




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
Stay green...Green IT