I installed Magento in a sub-folder of my public HTML root but I cannot seem to get it to redirect from example.com/shop
to shop.example.com
.
I have tried to change the .htaccess file in the sub-folder. What happens is that the website redirects from example.com/shop
to shop.example.com
but now the store doesn't load.
I redirected the store originally using .htaccess file in the sub-folder to the subdomain but that didn't work and I tried to change the base URL and secure URL in Magento to no luck.
Please help!
Best Answer
Have you tried clearing magento server cache/session data? If not refer to the following article:
How to clear the cache in Magento?
If the above doesn't work, have you checked if your http://shop.example.com DNS is being resolved? Have you put a static html file say test.html on the root of shop.example.com and see if you are able to browse http://shop.example.com/test.html?
By the way, you could have installed your magento directly under shop.example.com if you have permission to do that.