|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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. Affordable, custom website development Recording studio Windsor Ontario Screen printing, embroidery and suppliers of promotional products Custom t-shirts |
|
#3
|
||||
|
||||
|
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 |
|
#4
|
|||
|
|||
|
Quote:
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 |
|
#5
|
||||
|
||||
|
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. |
|
#6
|
||||
|
||||
|
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. |
|
#7
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Shed Forums > Web Design > Search Engine Optimization > How to remover "?id=" in php, because google is not reading the page |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|