[solution] htaccess rewrite to parent folder


min read

My profile

Share this:

when some idiot decides to put a whole site in a (dated) subfolder like


and you want to migrate to another host and set things strait ( meaning www/ ) you will end up with A LOT OF 404 urls

You need to create a 2018 folder and put this in your htaccess to redirect 301 all requests to the parent root folder

[code:1:5d54fe9e16]RewriteRule ^(.*)$ https://www.fulldomain.ext/$1 [R=301,L][/code:1:5d54fe9e16]

Share this:

Leave a Reply

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