Injader

How to move Injader to a different location

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:

  1. Moving from a folder to the root level (e.g. from yoursite.com/injader to yoursite.com)
  2. Moving from the root level to a folder (e.g. from yoursite.com to yoursite.com/injader)
  3. Moving to or from a subdomain (e.g. yoursite.com / injader.yoursite.com)
  4. Moving to a completely new URL

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.

Step 1. Upload the core files to the new location.

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.

Step 2. Set up the database connection.

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.

Step 3. Set up the rest of your data.

Go to the existing site and download everything in the data folder except data/secure. Then upload everything to your new site.

Step 4. Set up your theme.

Download the theme you're currently using from sys/themes and upload it to the same location on your new site.

Step 5. Edit the path.

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.

Step 6. Edit the .htaccess 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.

Step 7. Test the site.

Go to the home page of the new site and check that it connects to the database and that the theme displays correctly.

Step 8. Redirect the old site.

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

 
how_to_move_injader_to_a_different_location.txt · Last modified: 2009/04/16 06:55 by admin