Magento 1.6.2 Multiple Stores

Magento 1.6.2 Multiple Stores

August 4, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Magento 1.6.2 Multiple Stores

Running Multiple Magento Stores on One Installation

If you’re trying to run multiple Magento sites from a single installation, you’ve likely encountered challenges with redirection issues between stores. This guide will walk you through the best practices for setting up multiple websites in Magento while avoiding redirect conflicts.

Understanding Magento’s Multi-Store Architecture

Magento is designed with multi-store and multi-site functionality built-in. The key components are:

  1. Base URL: Defines the root URL of your domain.
  2. Website Code: A unique identifier for each store.
  3. Scope: Determines which website to use for a particular record.

Setting Up Your Second Store

Let’s assume you already have your primary store set up at www.example.com. To add a second store:

  1. Navigate to Stores > Settings > All Stores in the admin panel.
  2. Click on Add New Website and enter details like name, code (e.g., “second_site”), sort order, and other settings.

Configuring Your Second Store’s Base URL

The base URL determines how your second site will be accessible. To configure it:

  1. In the All Stores view for your new website, click its name.
  2. Under General Settings > Web, enter the URL you want to use (e.g., second-site.example.com).
  3. Make sure the Base URL field matches exactly what you entered in your domain registrar and web server configuration.

Configuring Your .htaccess File

The .htaccess file plays a crucial role in routing requests between sites. You’ll need to update it as follows:

  1. Open the public_html/.htaccess file.
  2. Add an entry for each additional site, like this:
RewriteCond %{HTTP_HOST} ^second-site\.example\.com [NC]
RewriteRule ^(.*)$ /pub/static.php?m=second_site&a=$1 [L]

Replace second-site.example.com, /pub/static.php, and second_site with your actual domain, PHP file path (if different), and website code.

  1. Save the changes and ensure the .htaccess file remains writable by the web server.

Testing Your Configuration

After updating the configuration:

  1. Visit your primary site (www.example.com) to confirm it’s still working.
  2. Open a new browser or incognito window and visit second-site.example.com.
  3. You should now see your second Magento store without being redirected anywhere.

Troubleshooting Common Issues

If you’re still encountering redirection issues, double-check the following:

  • Ensure there are no typos in your base URLs.
  • Confirm that both the .htaccess and pub/static.php files have proper permissions.
  • Verify that your domain registrar has the correct A records pointing to your server’s IP address.

Advanced Configuration: Parked Domains

If you want to use parked domains, here are some additional steps:

  1. Register the parked domain (e.g., third-site.example.com) with the same DNS settings as your main domain.
  2. In Magento admin, create a new website and enter the parked domain’s URL in the Base URL field.
  3. Update your .htaccess file to include an entry for the third site:
RewriteCond %{HTTP_HOST} ^third-site\.example\.com [NC]
RewriteRule ^(.*)$ /pub/static.php?m=third_site&a=$1 [L]
  1. Test the new domain as before.

Conclusion

Running multiple Magento sites from a single installation requires careful configuration of base URLs, website codes, and server routing rules. By following these best practices, you can create additional stores without encountering redirect conflicts or other compatibility issues.

Remember to always keep your Magento version up-to-date for improved performance and security. If you need further assistance with Magento development or want to explore advanced techniques like Magento 2 migration, consider reaching out to the experts at Laravel Company.

Happy coding!

Magento 1 Admin Configuration Orders

Our network