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 April 27th, 2006, 01:45 PM
Gnome101's Avatar
Gnome101 Gnome101 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 316 Gnome101 User rank is Corporal (100 - 500 Reputation Level)Gnome101 User rank is Corporal (100 - 500 Reputation Level)Gnome101 User rank is Corporal (100 - 500 Reputation Level)Gnome101 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 3 Days 12 h 24 m 11 sec
Reputation Power: 5
PHP & and SEO implications

Hey there folks!

We all know that in terms of SEO, it's a good idea to have HTML or W3C compliant code. This helps out with spiders hitting and liking your code.

Now...PHP uses the '&' to concatenate the string of a URL if there are more than one argument being passed.
Google has said that it will index something like 5 or 6 arguments, but it's thought that most spiders won't take more than 2 or 3 arguments in a URL.

I have two, and just ran my code through the validate to find that the '&' isn't really valid markup.

They suggest that I change my PHP.ini file.
Quote:
The character that PHP uses to separate arguments is configurable with the arg_separator.output directive. This can be set in a number of ways and is the solution suggested in the PHP manual.


Does anyone out there actually do this?

Do you think there is a significant effect to SEO with the use of non valid W3C code, by using the &?

Do you think it's worth changing?

Thanks for the feedback...

Kris

Reply With Quote
  #2  
Old April 27th, 2006, 03:29 PM
Hombre's Avatar
Hombre Hombre is offline
Pixel Cruncher
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2005
Location: UK
Posts: 647 Hombre User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hombre User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hombre User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hombre User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hombre User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hombre User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hombre User rank is Second Lieutenant (5000 - 10000 Reputation Level)  Folding Points: 3232 Folding Title: Novice Folder
Time spent in forums: 2 Weeks 1 Day 9 h 1 m 56 sec
Reputation Power: 102
Hi Gnome101,

I code using php but have never gone to the .ini file to change the directive for the concatenate operator. To get good validation I use & during coding (mypage.php?arg1=$var1&arg2=$var2&...) - which is echo'd as & -and gets the green up without any effect on url performance.

Last edited by Hombre : May 12th, 2006 at 06:54 AM.

Reply With Quote
  #3  
Old April 27th, 2006, 03:45 PM
Gnome101's Avatar
Gnome101 Gnome101 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 316 Gnome101 User rank is Corporal (100 - 500 Reputation Level)Gnome101 User rank is Corporal (100 - 500 Reputation Level)Gnome101 User rank is Corporal (100 - 500 Reputation Level)Gnome101 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 3 Days 12 h 24 m 11 sec
Reputation Power: 5
I'm going to have to try this out.

Thanks for the heads up...


Kris

Reply With Quote
  #4  
Old May 2nd, 2006, 03:16 AM
dotancohen's Avatar
dotancohen dotancohen is offline
המבין יבין
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jul 2001
Location: Haifa
Posts: 2,032 dotancohen User rank is General 5th Grade (Above 100000 Reputation Level)dotancohen User rank is General 5th Grade (Above 100000 Reputation Level)dotancohen User rank is General 5th Grade (Above 100000 Reputation Level)dotancohen User rank is General 5th Grade (Above 100000 Reputation Level)dotancohen User rank is General 5th Grade (Above 100000 Reputation Level)dotancohen User rank is General 5th Grade (Above 100000 Reputation Level)dotancohen User rank is General 5th Grade (Above 100000 Reputation Level)dotancohen User rank is General 5th Grade (Above 100000 Reputation Level)dotancohen User rank is General 5th Grade (Above 100000 Reputation Level)dotancohen User rank is General 5th Grade (Above 100000 Reputation Level)dotancohen User rank is General 5th Grade (Above 100000 Reputation Level)dotancohen User rank is General 5th Grade (Above 100000 Reputation Level)dotancohen User rank is General 5th Grade (Above 100000 Reputation Level)dotancohen User rank is General 5th Grade (Above 100000 Reputation Level)dotancohen User rank is General 5th Grade (Above 100000 Reputation Level)dotancohen User rank is General 5th Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Weeks 2 Days 1 h 53 m 49 sec
Reputation Power: 1301
Send a message via ICQ to dotancohen Send a message via AIM to dotancohen Send a message via MSN to dotancohen Send a message via Yahoo to dotancohen
This isn't php-specific behaviour. It's called a GET request, and is common to all languages. In fact, it started out as a way to replace the form POST request that some early browsers and gateways did not support.
__________________
. . . What is Firefox?
. . . . . . What is Linux?
. . . . . . . . . . . What is Love?

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignSearch Engine Optimization > PHP & and SEO implications


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 5 hosted by Hostway
Stay green...Green IT