【问题标题】:modx htaccess links are not workingmodx htaccess 链接不起作用
【发布时间】: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 中添加/删除一些东西吗??

【问题讨论】:

  • 得到了解决方案 :) 几乎没有配置错误...感谢您的关注。

标签: .htaccess modx-revolution


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-08-10
    • 1970-01-01
    • 2015-09-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多