Forum Moderators: coopster
www.mysite.com/foo/bar/imagehtm/image23.htm
to
www.mysite.com/foo/bar/img.php?pic=23
(where 23 is the picture number).
About an hour ago I ran into this article:
[zend.com...]
where basically the author says that dynamic pages with '?' in the URL are not spider friendly. I then searched webmasterworld and found conflicting opinions. Are dynamic pages with '?' in the URL indeed penalised?
Should I modify the URLs to something like
www.mysite.com/foo/bar/img.php/p23
using the $PATH_INFO environment variable? I only pass one parameter by the way.
I did, however, choose to do away with query strings using Apache's mod_rewrite module. I just like a url to look totally static. Your example of using the PATH_INFO global will work too, but the url still looks a bit strange to me.
I would use URLs like www.mysite.com/foo/bar/img-23.php
And then use mod_rewrite to rewrite them to
www.mysite.com/foo/bar/img.php?pic=23
The spiders and users never see the rewrite and the original stays in the address bar.
but the url still looks a bit strange to me.
AFAIK a directory with a . in it is perfectly valid in a *nix environment, probably in Windows too, so I wouldn't think it would hurt you.
I think that the way Google chunks things up dir.ectory would be two words just like dir-ectory (but unlike dir_ectory).
get params used to mess up SE's
they have gotten much much better
do more params mess up spidering - definitely
if you keep it to less params will it get spidered more efficiently - yes
do you get spidered more effectively with out get params - yes
the thing is we don't care about spidering. At the end of the day the only thing that counts is being able to rank.
do pages with no params rank well in competetive markets - yes 100%
do pages with params rank well in competetive markets - depends
your choice
cut and dried - rewrite them or design software that doesn't need them, give yourself the best chance you can to rank well, stop worrying about spidering. SE's will spider straight url's all the time.
<added>they are not penalized but why make the spider have to work to get what you want it to have? Why serve the same page 1000's of times and hope the spider knows the difference?
good point WhosAWhata but maybe not the best example
www.site.com/dogpic.htm
might be a better example, people don't remember numbers well, no association, or too many, however you want to look at it.
words, names, etc related to the subject matter are the easiest for ppl to remember.
what was that site with the ....
funny dog picture
casserole recipe
link script
baby product
www.example.com/funnydog.html
www.example.com/casserole.html
www.example.com/linkscript.html
www.example.com/babyproduct.html
you get the drift
thats all i was trying to get across
I wholeheartedly agree and have said the same thing until I'm sick of typing in the url for Tim Berners-Lee's "Cool URIs Don't Change" article.
That's why I like really like to use mod_rewrite to make mnemonic URIs with no file extensions like
www.site.com/articles/year/2003/month/may/aid/article17/pid/page4
Just kidding! Sorry guys, i haven't been getting enough sleep lately and this is what happens.
Tom
www.site.com/gallery/img.php?pic=NN
to
www.site.com/gallery/img.php/pNN
Well, I found out that I had to modify the scripts because I use relative URLs and all of a sudden I was one level lower in the hierarchy. Never mind, in the end it worked.
But then, later in the evening I was running the site search reindexing all pages and weird things happened. The site search was busily indexing things like
www.site.com/gallery/index.php/img.php/pNN!
I quickly went back to the previous URL format, which Google has no problem indexing. But what about other search engines (MSN, Yahoo, Altavista)? Are they able to index URLs like
www.site.com/gallery/img.php?pic=NN?