View previous topic
|
Author |
Message |
ramon fincken Site's programmer
 Get a free globally recognized avatar It's free!
Joined: 03 Aug 2007 Posts: 414 Location: A'dam/Diemen, The Netherlands
|
Posted: Fri Dec 13, 2019 12:23 pm Post subject: [solution] htaccess rewrite to parent folder |
|
|
when some idiot decides to put a whole site in a (dated) subfolder like
www/2018/
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: | RewriteRule ^(.*)$ https://www.fulldomain.ext/$1 [R=301,L] |
|
|
Back to top |
|
 |
Google adsense Advertisement
|
Posted: Fri Dec 13, 2019 12:23 pm Post subject: [solution] htaccess rewrite to parent folder |
|
|
Advertisement
|
|
Back to top |
|
 |
GravityForms Advertisement
|
Posted: Fri Dec 13, 2019 12:23 pm Post subject: [solution] htaccess rewrite to parent folder |
|
|
Advertisement
 |
|
Back to top |
|
 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|