JavaScript Editor Ajax software     Free javascripts 

Main Page

is specifically written to take parameter order into consideration. Here is an example where a PHP web
site would generate the exact same content, but using different URLs:
If the
script accesses the parameters as
, respectively, these two different URLs would generate the same content. There’s no standard spec-
ifying that URL parameters are commutative. If both dynamic links are used within the web site, search
engines may end up parsing different URLs with identical content, which could get the site penalized.
In conclusion, it’s wise to be consistent and follow a standard parameter order to avoid problems and
improve your rankings. Consider an example where the parameter order may make a difference:[]=1&item[]=2[]=2&item[]=1
Here, the parameter name is
, and it’s used to populate a PHP array called
. In the
former case the item array contains (1,2), and in the latter it contains (2,1). In this case, a search engine
cannot assume these URLs are equivalent — and indeed they may not be.
The programmer should also try to use consistent capitalization on file names and query strings. Search
engines resolve such simple differences, especially because file names in Windows are not case sensitive,
but the following URLs are technically different in both Windows and Unix operating systems:
Your script may recognize the equivalence of those URLs, but a search engine may not. Again, main-
taining a consistent style is desirable. The developer should also try to reference directories in a web
site with the trailing “/” consistently. For example, if you’re using numeric rewritten URLs, it would
be best to avoid referencing a particular product using both of the following links, even if your script
can successfully parse them:
In practice, search engines
resolve many of these ambiguities. Matt Cutts asserts that Google can “
things like keeping or removing trailing slashes, [and try] to convert URLs with upper case to lower case
” (
), but this is only a subset of the
aforementioned ambiguities. It is best to remove all of the offending ambiguities regardless.
In order to enforce consistency as a whole, you can create a function for each type of URL required by
a site. Through the logic in that function URLs are consistently formatted. As you will see in Chapter 5,
Chapter 3: Provocative SE-Friendly URLs
c03.qxd:c03 10:39 45

JavaScript Editor Ajax software     Free javascripts 
Bitcoin Dice Site