by dcz » Sun Mar 04, 2007 4:49 pm
URL rewriting is performed in two steps, first the url rewriting itself, where we manage to transform the url outputted by the script, and then, mod_rewrite itself, where we set up some rewriterules to have our new url working.
So I cannot tel about your script without knowing a bit more about it.
What is for sure is, it will be more code changes to go for the following rewriting :
index.php?article=33 => /article-title/
Than this one :
index.php?article=33 => /article-title/33/
As the article=33 GET var suggest the scritp is selecting on IDs. You'd need to change the db settings to perform a select on the title instead.
to be able to use index.php?article=article-title
The second one should be easier to put together, but it depends on your script.
++