I'm rewritting this
http://myweb.com/post/5/title-of-the-post
(new url)
To
http://myweb.com/post.php?id=5
(old url)
I have achieved this by:
RewriteEngine On
#Options +FollowSymLinks
RewriteRule ^post/(.+)/(.+) post.php?id=$2
But if I try to enter to the old url it's still possible, so how can I redirect to the new one and not end up in a loop?