远程子域网址屏蔽 [英] remote subdomain URL masking

查看:146
本文介绍了远程子域网址屏蔽的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

二Magento的基础的问题在这里,我就是pretty的信心我能找到我的答案。我所拥有的已经是的站点承载:

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

但是,主机不支持InnoDB的,所以我无法在其上运行的Magento。正因为如此,子域...

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

shop.hostedwebsite.com

...现在设置在CNAME和A记录指向我自己的主机的IP地址。事情在我的主机的网站也会进行排序。一切加载完全按计划进行。但是它保持基本文件结构从我的服务器。所以,如果你在店里子域中输入你去到正确的页面,但它给人的网址...

...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

...。

我有一个去试图弄清楚这一点我自己,我甚至检查与主域名和托管的支持,但他们无法弄清楚要么说我应该尝试.htaccess文件自定义code。但是我想我会问这里,因为你们可能会认识很多比我更好的。

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?

推荐答案

检查系统的存储配置>配置常规/ Web选项卡上。这家商店的网址应该指出的子域名。你也可以查看在core_config_data表中MySQL和手动更改网址。

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.

这篇关于远程子域网址屏蔽的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆