|
Hi,
I've been trying to get this .htaccess redirect to work for a while now, but I just can't.
Basically I want to be able to turn a URL like this:
localhost/cms/viewpost.php?postID=NUMBER
into this:
localhost/cms/post/NUMBER-STRING.html
Where if the visitor followed a link that looked like this:
localhost/cms/post/72-Post+Name.html
it would show them
localhost/cms/viewpost.php?postID=72
But I can't do that. It's simple, but I'm horrible with regular expressions.
Thanks a lot!
Last edited by Physicsguy; 03-09-2011 at 07:08 PM..
|