modx htaccess链接不起作用

时间:2011-10-03 08:09:43

标签: .htaccess modx-revolution

Hello 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)如果我再次添加它只有主域及其内部链接打开...没有子域或子域的内部链接工作

还有一件事......而CLUE就是这样 当我尝试访问具有此类ID的相同404页面时 www.abc.com/index.php?id=8056

它有效

我是否需要在htaccess中添加/删除某些内容?

1 个答案:

答案 0 :(得分:0)

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