remote subdomain URL masking

无人久伴 提交于 2019-12-13 04:43:30

问题


Second magento based question here, and i'm pretty confident i'll be able to find my answer. What i have is a site already hosted at:

hostedwebsite.com

However, the host doesn't support innodb, so i'm unable to run magento on it. Because of this, the subdomain...

shop.hostedwebsite.com

...is now set up in CNAME and A record to point to the ip of my own host. Things on my hosts site are sorted as well. Everything loads exactly as planned. However it's keeping the base file structure from my server. So if you type in the shop subdomain you go to the right page, but it gives the url...

myserver.com/work/newshop

... instead of the subdomain.

I've had a go at trying to figure this out myself, i even checked with the support for the main domain and hosting, however they couldn't figure it out either and said i should try a .htaccess file with custom code. However i thought i'd ask here, as you guys will probably know a lot better than me.

Am i going about this right? IS there a way to mask the url so that it shows the shop subdomain?


回答1:


Check your store configuration in System > Configuration on the General / Web tab. The store URLs should be pointed to the sub domain. You could also check in the core_config_data table in MySQL and change the URLs manually.



来源:https://stackoverflow.com/questions/19464862/remote-subdomain-url-masking

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!