This should be a simple thing to do, but I just can't see it.

I have a database, with, say, articles, with ID, title, and text.  I
just want to make the URLs of the pages become sitename.com/title
instead of the more usual sitename.com/article.php?id=(ID from
database).

However, I don't want to manually add a line to htaccess for each page /
database entry, and I am nervous about making programatic changes to
htaccess (not even sure it it's possible) because of the damage that it
can do to the entire site.

What I have done before, is to give the page a tail, like .info, then
get htaccess to rewrite the URL to /article.php?title=(title from
database).  The tail allows htaccess to recognise that this is an
article.

But is there a way to do this, just using /title as the url?

-- 
Pete Clark

Advertise your events - local and free
http://hotcosta.com/events.php

Reply via email to