Unable to enable Clean URLs in drupal 7 website after migration

一曲冷凌霜 提交于 2019-12-14 03:57:25

问题


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

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

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?


回答1:


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

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




回答2:


Check if .htaccess works and also check if you have AllowOverrides All in your virtualHost config in Apache.



来源:https://stackoverflow.com/questions/22913173/unable-to-enable-clean-urls-in-drupal-7-website-after-migration

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!