无法使迁移后清洁网址在Drupal 7网站清洁、网址、网站、Drupal

2023-09-02 20:34:46 作者:莫失莫忘

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