What is the best practice to manage subdirectories in WordPress?
-
I have a website that is written use static html pages. It contains many URLs containing subdirectories like this:
https://www.example.com/product1/order.htm https://www.example.com/product1/error/error1.htm
Now I want to create a new website via WordPress and transfer all contents from the old website to the new one.
So I wonder what is the best practice to process all these URLs with subfolders.
Should I:
Keep the subfolders by using parent/child pages, like this:
https://www.example.com/product1/order.htm -> https://www.example.com/product1/order/ https://www.example.com/product1/error/error1.htm -> https://www.example.com/product1/error/error1/Or
Remove all subfolders, and chaning all URLs like this:
https://www.example.com/product1/order.htm -> https://www.example.com/product1-order/ https://www.example.com/product1/error/error1.htm -> https://www.example.com/product1-error-error1/Or using other methods?
The post is originally posted on stackoverflow at https://stackoverflow.com/questions/60185159/what-is-the-best-practice-to-manage-subdirectories-in-wordpress but get no replies. So I have to repost it here.
Thanks
- The topic ‘What is the best practice to manage subdirectories in WordPress?’ is closed to new replies.