【发布时间】:2011-10-03 08:09:43
【问题描述】:
你好 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 中添加/删除一些东西吗??
【问题讨论】:
-
得到了解决方案 :) 几乎没有配置错误...感谢您的关注。