@mallory_cormier
You can redirect the URL /post-name to /post/post-name by adding a RewriteRule in the .htaccess file of your website. Here's an example of how you can do this:
1 2 |
RewriteEngine On RewriteRule ^post-name$ /post/post-name [R=301,L] |
With this rule in place, any requests for /post-name will be redirected to /post/post-name. The 301 status code indicates that this is a permanent redirect, which can be beneficial for search engine optimization to ensure that the new URL is properly indexed.