url rewriting an id with a string variable
trying to figure out how to rewrite this url clientside blog.com/post/how-to-get-the-ladies to point serverside to blog.com/post.php?id=123 i know how to do this: blog.com/post/123 RewriteRule ^([^/]+)/?$ post.php?id=$1 [NC,L] but how do you replace the id string with the post title slug? The webserver itself doesn't make this distinction and cannot translate from your "unique text identifier" to the database id. Therefore a .htaccess rule alone evaluated by the webserver will not help you. But how is it done on all those web-applications? Normally this translation is done by Joomla/Wordpress