Making dynamic URLs look static

They have: 6 posts

Joined: Feb 2000

I run http://www.forumclick.com , a site completely programmed in PHP and it is dynamic. I want to make the URLs look static, the point being that search engines will better index it. This means getting rid of the ?'s and the &'s.

So, http://www.forumclick.com/showdoc.php?id=24
would look like
http://www.forumclick.com/showdoc/24
or
http://www.forumclick.com/showdoc.php/24

I'm hearing of all sorts of methods, from using the Apache Forcetype command (something my host won't let me into because I have to get into httpd.conf) to using a 404 trap.

The http://www.forumclick.com/showdoc.php/24 link would be easy: just code some simple URL parsing into the template and explode the string with "/" as the delimiter.

But, do you guys have any bright ideas on the other ways, knowing what i have in mind?

EDIT: Actually, now that i think about it, that "easy" method wouldn't work. So, I'm back to square one. An6y ideas? :END EDIT

[Edited by drisley on Feb. 13, 2001 at 02:27 PM]

David Risley
Owner/Operator
PC Media, Inc.
http://www.pcmedianet.com
Web Services / Development

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

what went wrong? the apache thing or the explosions Wink?

They have: 161 posts

Joined: Dec 1999

If you have a program that is accessible via the URL http://www.foo.com/this, and you enter the URL http://www.foo.com/this/alpha/beta, the web server puts the string "/alpha/beta" into the PATH_INFO environment variable.

This may be a part of the solution you're looking for.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.