...

View Full Version : dynamic pages and SEO



suhayda
05-21-2004, 04:49 PM
I am running into a little SEO problem with my php generated pages. The search engines don't like the variables in the back of the URL ( ?name=xyz) I have decided to keep my pages dynamic, but the way I do it is by having a php page called file.php and then all this file has is something like includefile "anyfile?name=xyz" I basically pull in a dynamically created page into a staticly named page.

This is fine with 20 or even more files.

I now want to do an entire directory for about 50K entries. I can't manually generate those files. So I was wondering if there any tools or scripts out there, that I can run which will automatically generate the files for me. The file names need to come from a database or excel, whatever works.

Any ideas how to do this a smarter way>

thanks

raf
05-21-2004, 07:43 PM
I don't realy understand it.

you can use PHP to dynamically create the files (using data from the db or from whatever other souce) and save them, but what has this to do with the querystring issue ?

brothercake
05-21-2004, 08:33 PM
It is generally held, though obviously Google won't give the details, that it limits how deeply it indexes URLs with query data in them. The reason is just that it's too easy for a robot to get lost indexing hundreds of pages that are all basically the same.

But what you can do is use a "clean URLs" approach, where you parse a normal-looking URL and create CGI parameters from it. For example:


http://www.domain.com/articles/2004/march/

Could become:


http://www.domain.com/?s=articles&y=2004&m=march

But it's done transparently - the address still looks the same. You end up with URLs that are easier to remember and type, and which look to a search engine just like folders.

Anyway there's loads of ways of doing it, depending on your environment. PHP and mod_rewrite is what I do at http://www.udm4.com/ and I believe http://www.alistapart.com/ does something similar. Google for "clean URLs" and that should steer you right :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum