Warning: mysqli_query(): (HY000/1021): Disk full (/tmp/#sql-a2c-1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device") in /var/www/html/wp-includes/wp-db.php on line 2024

Warning: mysqli_query(): (HY000/1021): Disk full (/tmp/#sql-a2c-1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device") in /var/www/html/wp-includes/wp-db.php on line 2024
class="post-443950 post type-post status-publish format-standard hentry" id="post-443950">

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:

  1. 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

  1. 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?

Thanks

Update:

With the hint of others, I get to know there are categories in WordPress. I search online and find the following URLs:

https://www.wpbeginner.com/wp-tutorials/seo-friendly-url-structure-for-wordpress/
https://www.wpbeginner.com/beginners-guide/categories-vs-tags-seo-best-practices-which-one-is-better/

So it seems using categories is a good practice to keep a hierarchy structure in WordPress. Is that correct?

Leave a Reply

Your email address will not be published. Required fields are marked *