Hi,
I know how to rewrite URLs like the following:
mysite.com/post/post-1/
mysite.com/category/category-1/
using
What I want to achieve is to remove "post" and "category" from the URLs and have the following:Code:RewriteRule ^post/([a-z0-9-]+)/$ post.php?post=$1 RewriteRule ^category/([a-z0-9-]+)/$ category.php?category=$1
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.



Reply With Quote
Bookmarks