Drupal 迁移 - 现在只有首页有效 [英] Drupal migration - now only front page works

查看:27
本文介绍了Drupal 迁移 - 现在只有首页有效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚从 ISP 迁移了一个 Drupal 站点到专用的 Linux CentOS 服务器.

I just migrated a Drupal site from a ISP to a dedicated Linux CentOS server.

MySQL 数据库已配置并生成首页,无错误.

MySQL Database is configured and generates front page without error.

问题是只有主页有效.所有其他页面都显示404 页面未找到错误".

Problem is that only the home page works. All other pages show "404 Page Not Found Error".

所以 mysite.com/有效但 mySite.com/node/1 不起作用.

So mysite.com/ works but mySite.com/node/1 does not work.

我检查了一些明显的地方:

I checked some obvious places:

LoadModule rewrite_module modules/mod_rewrite.so在 httpd.conf 中启用

LoadModule rewrite_module modules/mod_rewrite.so is enabled in httpd.conf

有什么想法吗?

推荐答案

我以前遇到过这种情况.这可能是因为您的新 Linux Centos OS 服务器尚未配置为使用干净的 URL.

I've had this happen before. It could be because your new Linux Centos OS server isn't configured for clean URLs yet.

尝试按如下方式访问该站点.登录:http://example.com/?q=user/login

Try to access the site as follows. To login: http://example.com/?q=user/login

以管理员身份登录并提交表单.提交后,您将再次收到访问被拒绝的 404 页面,但仍会登录.

Login as admin and submit the form. You'll get access denied 404 page again after submission but still login.

现在手动输入并转到 http://example.com/?q=admin/设置/清理网址

Now manually type and go to http://example.com/?q=admin/settings/clean-urls

在此页面上关闭 clean-urls 并保存,您应该能够在新服务器上正常访问您的站点.只需为 clean-urls 配置它,然后在它准备好时将其重新打开.

On this page turn off clean-urls and save and you should be able to access your site normally on the new server. Just configure it for clean-urls and then turn it back on when it's ready.

这篇关于Drupal 迁移 - 现在只有首页有效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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