I am looking for quite a while to find something similar, but I cannot find what I am looking for.
I would like to redirect the old project with the dropped project to the new one, they are only partially similar, and I would like to redirect the matches, and then everything else, deleting each
I think I remember that the htaccess rules work one by one, so I can just add 301 above the redirect to everything else, but it turns out that this code
RewriteEngine On Redirect 301 /match1.html https://www.domain.tld/match1/ Redirect 301 /match2.html https://www.domain.tld/match2/ Redirect 301 /match3.php&page=6 https://www.domain.tld/match3/? RewriteBase / RewriteRule .*? https://www.domain.tld/? [R=301,L]
just redirects everything directly to https: //www.domain.tld/
The old project fully manages working with 450+ static html pages and ~ 100 more php files, so I hope there is an easier way to create a huge .htaccess for this.
source share