Hi,

I know how to rewrite URLs like the following:

mysite.com/post/post-1/
mysite.com/category/category-1/


using

Code:
RewriteRule ^post/([a-z0-9-]+)/$ post.php?post=$1
RewriteRule ^category/([a-z0-9-]+)/$ category.php?category=$1
What I want to achieve is to remove "post" and "category" from the URLs and have the following:

mysite.com/post-1/
mysite.com/category-1/


Is this possible with .htaccess or do I need to have some sort of PHP solution?

Thanks for any ideas.