Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
| info:concrete5:59:move [2025/09/19 04:57] – supprimée - modification externe (Date inconnue) 127.0.0.1 | info:concrete5:59:move [2025/09/19 04:57] (Version actuelle) – radeff | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | ====== move / migrate ====== | ||
| + | {{tag>c5 c59}} | ||
| + | |||
| + | //How to move a concrete5 website from a subdirectory to the root directory of your webserver?// | ||
| + | |||
| + | <note tip>If you want to move your concrete5' | ||
| + | |||
| + | * https:// | ||
| + | * https:// | ||
| + | </ | ||
| + | |||
| + | Now, considering you just want to move your website from a subdirectory to the root directory (or the reverse), here is a small doc | ||
| + | |||
| + | < | ||
| + | For instance, you want to move your website from | ||
| + | | ||
| + | to | ||
| + | | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | # This doc is distributed in the hope that it will be useful, | ||
| + | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| + | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
| + | # GNU General Public License for more details, | ||
| + | # https:// | ||
| + | </ | ||
| + | |||
| + | * First, upgrade your website if required | ||
| + | * Log as an admin in your website: | ||
| + | |||
| + | | ||
| + | |||
| + | * Clear the cache from the dashboard | ||
| + | * Put your website in maintenance | ||
| + | * If you don't have a recent one, **MAKE A COMPLETE BACKUP** (website + database) | ||
| + | * Go to your system files (FTP or SSH) | ||
| + | * Move ALL the files from the subdirectory to the root directory | ||
| + | * fix the permissions by running this command | ||
| + | |||
| + | chmod -R 777 packages application/ | ||
| + | |||
| + | |||
| + | ===== .htaccess ===== | ||
| + | if you have any, edit your .htaccess file: | ||
| + | |||
| + | replace | ||
| + | |||
| + | RewriteBase / | ||
| + | | ||
| + | with | ||
| + | |||
| + | | ||
| + | |||
| + | * Log in as an admin in your moved website, https:// | ||
| + | * De-activate the maintenance | ||
| + | |||
| + | https:// | ||
| + | | ||
| + | * Done! | ||
| + | |||
| + | ===== Deadlinks ===== | ||
| + | |||
| + | After that, you may check your website, mostly dead links with a tool like [[https:// | ||