0

您好 MODx 开发人员,

I am using MODx revolution. I have just transferred site from one domain to another. as it was a IP based server i have created virtual host with the same name it had previously. 
On previous server the files were located at the root but in new server files are located at tab3, so i have created virtual host that points inside that directory. ie. I have all files in modx/ dir so my virtual host config set to /var/www/modx/
Now the problem is whenever i open home page as well as subdomains (contexts) it works and shows the page but when i open any internal links it says 404 page

例如:如果我打开 www.abc.com => 它可以工作,但是当我打开 www.abc.com/contacts => 它不起作用

我看到它与 .htaccess 的问题,因为 1)如果我删除 htaccess,所有子域和域都可以正常工作,但像“abc.com/contact”这样的内部链接不会打开并显示 404 2)如果我再次添加它,只添加主域和它的内部链接打开...没有子域或子域的内部链接有效

还有一件事....和线索是,当我尝试使用像这样的 ID 访问相同的 404 页面 www.abc.com/index.php?id=8056

有用

我需要从 htaccess 中添加/删除一些东西吗?

4

1 回答 1

0

新服务器是否运行 Apache?我在服务器运行 Zeus 时遇到了类似的问题,因此 .htaccess 不起作用。有一个解决方案,但对我来说太先进了。而是更容易安装在 Apache 服务器上。

于 2011-12-30T12:28:14.810 回答