简体   繁体   English

我的Drupal已安装,但所有链接均无效

[英]My Drupal installed but none of the links are working

All the tabs "Content", "Structure", "Appearances", "Configuration", etc tabs are all sending me to a not found error. 所有的“内容”,“结构”,“外观”,“配置”等选项卡都将我发送到未找到的错误。 It is on "clean url", but it's not finding the page: 它在“干净的网址”上,但找不到页面:

Not Found
The requested URL /drupal/admin/modules was not found on this server.

I have tried the many solutions on the web but nothing seems to work. 我已经在网络上尝试了许多解决方案,但似乎没有任何效果。 My httpd.conf in apache has the AllowOverride All on 我在apache中的httpd.conf启用了AllowOverride All

<Directory />
AllowOverride all
Options Includes
Require all denied
</Directory>

The structure of my folder is C:\\Sites\\drupal . 我的文件夹的结构是C:\\Sites\\drupal The .htaccess file has RewriteBase /drupal uncommented. .htaccess文件没有注释RewriteBase /drupal What else am I missing? 我还想念什么? I'm on PHP 7 我在使用PHP 7

Finally figured out the problem. 终于解决了问题。 It was just a matter of uncommenting aspects in the .htaccess. 这只是.htaccess中各个方面的问题。 Both # RewriteBase /drupal should be left commented out, and RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] should be uncommented. # RewriteBase /drupal应该都被注释掉,而RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]应该不加注释。 Somehow they were both reversed which caused a lot of confusion. 他们都以某种方式被逆转,引起了很多混乱。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM