I had to configure some paths on my site, and I need to use .htaccess to redirect items when the user accidentally accesses the old URL.
For example, my old urls (relative) could be:
/old-path/page1.php
/old-path/page2.php
/old-path/page3.php
etc...
I had to change the path (for this example) to a new path, and I need to configure .htaccess so that anyone who gets to any page with ... / old -path / ... will be redirected to
.../new-path/...
Also, will it fit 301 or will I need to list each page?
source
share