无法使迁移后清洁网址在Drupal 7网站 [英] Unable to enable Clean URLs in drupal 7 website after migration

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

问题描述

最近,我迁移我的网站从本地机器的服务器计算机。该网站的网址是 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.

阅读的答案后,我才知道,这是因为发生了干净URL模块。我在.htaccess文件中启用的RewriteBase MyWeb即可,但它不工作了。最后,我想这里禁用清洁网址暂时的告诉的。这个效果很好。

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.

下面是截图 -

Below is the screenshot-

我可以看到在状态报告中的一些目录权限误差的管理/报告/状态的。难道这些相互关联的?

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模块/ mod_rewrite.so'线的服务器上,并重新启动服务器

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

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

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