It's best to get your installation right first time, so you don't have to move things around. However, it is relatively easy to move Injader to another folder or even to a completely different domain. Here are some possible moves you might want to do:
This is a pretty comprehensive guide that outlined all of the steps you need to follow. In some cases you won't need to follow every step, it all depends on your requirements. Note that you will need to create the appropriate folders or subdomains if needed.
Start by uploading everything from the Injader ZIP file as if you were installing a brand new site - but don't actually run the installer.
Download data/secure/db_vars.php from your existing site and upload it to the same location in the new site. Note that if you are moving to a new domain, you will need to edit the file with the new connection parameters.
Go to the existing site and download everything in the data folder except data/secure. Then upload everything to your new site.
Download the theme you're currently using from sys/themes and upload it to the same location on your new site.
On your new site, edit sys/SystemDirs.php. Look for the following line:
define('URL_ROOT', "/");
This is how it should look if you've installed Injader in the root directory or on a subdomain. If you're moving to a subfolder, change this line so it looks like this:
define('URL_ROOT', "/injader/");
Replace “injader” with the name of the subfolder. You can go more than one level deep, e.g. /injader/test/, just make sure there's a forward slash at the start and at the end.
Note that if you're moving from the root directory on one domain to another, you may not need to edit this file.
In the root of your Injader installation, there will be a file called .htaccess - edit this and look for the following:
RewriteRule . /view.php [L]
Again, you're looking to get this to reflect the correct path. For instance if you installed Injader in a subfolder, the end result should look like this:
RewriteRule . /injader/view.php [L]
Once again, ensure you have the correct folder name here.
Go to the home page of the new site and check that it connects to the database and that the theme displays correctly.
If the new site looks good, then you need to set up a redirect from the old site to the new site. This is beyond the scope of this guide but we may include some basic instructions if there's any demand for it.
Navigation: start