迁移后无法在 drupal 7 网站中启用 Clean URL [英] Unable to enable Clean URLs in drupal 7 website after migration

查看:28
本文介绍了迁移后无法在 drupal 7 网站中启用 Clean URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我将我的网站从本地机器迁移到服务器机器.网站网址是 http://www.example.com/myweb

Recently, I migrated my website from local machine to server machine. The website URL is http://www.example.com/myweb

我注意到只有首页可见,其他页面显示 404 错误.

I noticed that only front page is visible and other pages are showing 404 error.

阅读 this 答案后,我知道这是由于干净的 URL 模块而发生的.我在 .htaccess 文件中启用了 RewriteBase myweb 但它不起作用.最后,我想按照 这里 的说明暂时禁用 Clean URL.这很好用.

After reading this answer, I got to know that this is happening because of clean URL module. I enabled RewriteBase myweb in .htaccess file but It doesn't work out. Finally I thought of disabling Clean URL temporary as told here. This works well.

现在我想再次启用它.它显示以下错误-

Now I wanted to enabled it again. It is showing following error-

Clean URLs cannot be enabled.

下面是截图-

我可以在 admin/reports/status 的状态报告中看到一些目录权限错误.这些有关系吗?

I can see some directory permissions error in status report at admin/reports/status. Are these related to each other?

推荐答案

您需要在新服务器上更改 Apache 服务器设置.

You need to change your Apache server setting on new server.

在您的服务器上的 httpd.conf 文件中启用LoadModule rewrite_module modules/mod_rewrite.so"行并重新启动服务器

Enable 'LoadModule rewrite_module modules/mod_rewrite.so' line in httpd.conf file on your server and restart server

这篇关于迁移后无法在 drupal 7 网站中启用 Clean URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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