Good Afternoon:
I am looking to use Apache's mod_rewrite module to rearrange some URLs, but my knoweldge of regular expressions is SORELY lacking.
I would like to take a url such as:
http://www.somesite.com/folder/somepage.html
and translate it to:
http://www.somesite.com/index.php?dept=folder&page=somepage.html
and, just as likely:
http://www.somesite.com/folder/another_folder/somepage.html
to:
http://www.somesite.com/index.php?dept=folder&page=anotherfolder/somepage.html
Would someone please assist me with this? I would greatly appreciate it!