迁移后无法在drupal 7网站中启用Clean URL [英] Unable to enable Clean URLs in drupal 7 website after migration
问题描述
最近,我将我的网站从本地机器迁移到服务器机器。网站网址为 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
,但它没有解决。最后,我想到按照这里说明禁用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.
以下是截图 -
< img src =https://i.stack.imgur.com/ijKNF.pngalt =enter image description here>
我可以看到一些目录权限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屋!