Is you Magento installation 1.4.0.1?
And did you Flush the cash?
Also, keep your New Website “Current Configuration Scope” Unsecure and Secure - Base URL and Base Link URL to “default , as it was after original installation.
I have set the Unsecure and Secure - Base URL and Base Link URL to “default for the new website.
when I did this nothing really happened, just the new website works correctly only for its main page.
Also I have put the code at the .htaccess and when I saved it everything stopped working again and a server error 500 appeared.
Also I flushed the cache and I have Magento installation 1.4.0.1.
Any other ideas?
If I understand your base website is working ok and the main page off the new website as well. So what is wrong?
You can PM me your index.php an htaccess files, so I can have a look.
I did this in a local installation to get the both the standard and mobile version active in 1.5.0.1 on a windows 7 machine (this should work in 1.4 too I guess)
In Magento
- created 2 stores in magento (the standard way)
- added the iphone template to the mobile store (the standard way)
- changed the Auto-redirect to Base URL to no (Default Options > Web > URL options)
- in index.php added the seperation the standard (old fashion) way:
On my webserver (wamp, this was just to create 2 fictional domain names to work with)
- created 2 virtual host sections both pointing to the same magento folder, one called www.standardmag.dev the other called www.mobilemag.dev
- added both domain names to my hosts file pointing to 127.0.0.1
- restarted apache
now:
- www.standardmag.dev leads me to the normal site
- www.mobilemag.dev leads me to the mobile site
Where (code) is the website or store code and (type) is either “website” or “store”. Works great for us on MageMojo and Hostgator, both. We don’t mess with the httpd.conf or the index.php files at all.
Furthermore, we’re able to manage dozens of Websites and Stores, all using a shared SSL certificate!
Took us a long time to find the “simple” cure, for us, but it works.