Here is what I am trying to do.
Get from this
http://mysite.com/post.php?id=12&title=postname
to this
http://mysite.com/post/12/postname/
here’s the rewrite rule.
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^post/([a-zA-Z]+)/([0-9]+)/$ post.php?id=$1&title=$2
This is my html link that links to the post.php page.
<a href="post.php?id=12&title=postname">
Click here to see the post!
</a>
It does not change the url.
I have also tried it like below and it gives me an internal error.
<a href="post/12/postname">
Click here to see the post!
</a>
Can you see what I have done wrong? Also if the above method for the linking is correct, how do I get the "id" and "title" using the $_GET?