Hey,
I've been banging my head since many hours on this and I am unable to come up with a solution.
What I need to get done.
http://domain.com/page.php => http://domain.com/page/
http://domain.com/category-name1.php => http://domain.com/category/name1/
Details: I have couple of files with the following names & I want them to be shown in the following way.
category-name1.php => category/name1/
category-name2.php => category/name2/
category-name3.php => category/name3/
.
.
.
category-name100.php => category/name100/
category-something.php => category/something/
category-lipsum.php => category/lipsum/
=======================================
Also, I would like to achieve the following rewrite too
/category.php => /category/
/abcd.php => /abcd/
=======================================
I'm trying but I can't achieve any of it.
I've been banging my head since many hours on this and I am unable to come up with a solution.
What I need to get done.
http://domain.com/page.php => http://domain.com/page/
http://domain.com/category-name1.php => http://domain.com/category/name1/
Details: I have couple of files with the following names & I want them to be shown in the following way.
category-name1.php => category/name1/
category-name2.php => category/name2/
category-name3.php => category/name3/
.
.
.
category-name100.php => category/name100/
category-something.php => category/something/
category-lipsum.php => category/lipsum/
=======================================
Also, I would like to achieve the following rewrite too
/category.php => /category/
/abcd.php => /abcd/
=======================================
I'm trying but I can't achieve any of it.