Hi,
I have an application which uses perhaps 3 main scripts on the front end. I wish to update the script to use mod_write but all the URL's are hard-wired (for lack of a better word). The system uses many classes and functions and it's near impossible to update all the links. An example of what I want to do is:
I currently have:
article.php?id=49&group=some.group
and
thread.php?group=some.group
I want:
/group/some.group/49.htm
and
/group/some.group/
So I thought of buffering the parsed code and doing a find/replace (str_replace) to achive the above!! Any help with the code would be great.
Also the next step is to add the mod_rewrite code to .htaccess - I seem to be having some problems there also - here is what I had (and did not work):
RewriteEngine on
Options +FollowSymlinks
RewriteBase /
RewriteRule group/(.)/([0-9]+).htm article.php?id=$1&group=$2
RewriteRule group/(.)/ thread.php?group=$1
I would greatly thank anyone with some help here.
Cheers