I have the following URL’s that I want to point to the same resource:
1) mydomain.com/basename/category-name/page-name1/
2) mydomain.com/basename/page-name1/
URL#1 works and URL#2 goes to 404.
How would I rewrite URL#2 to include a default category so the link works? Or is there a better solution?
If you are planning to redirect all pages with format #2 to #1 then you can use below RewriteRule, also assuming
category-name
will be fixed.