简体   繁体   English

在drupal中找不到页面错误

[英]page not found error in drupal

hi i am getting a strange error in my drupal website "Page not Found" when i click on Login page.I have no idea why this error is comes. 您好,当我单击登录页面时,我的drupal网站“页面未找到”中出现一个奇怪的错误。我不知道为什么会出现此错误。 please let me know what may be the result.(this is error is only on two pages My Account Page and login page ,rest other pages are working fine). 请告诉我结果可能是什么。(这是仅在“我的帐户”页面和“登录”页面两页上的错误,其余页面均能正常工作)。

Things to try: 尝试的事情:

  1. Rebuild the menues by loading admin/build/modules 通过加载admin / build / modules重建菜单
  2. Clear the cache via admin/settings/performance 通过管理员/设置/性能清除缓存
  3. Rebuilt permissions admin/content/node-settings 重建权限admin / content / node-settings

unless you have some kind of advanced setup (memcache, authcache, varnish, that kind of stuff) one of these should do the trick. 除非您具有某种高级设置(内存缓存,authcache,清漆之类的东西),否则其中之一应该可以解决问题。

I had a similar problem where would say 我有类似的问题在哪里说

index.php was not found on this server 在此服务器上找不到index.php

and it turned out to be my .htaccess file was not configure to serve drupal from a subdirectory. 原来是我的.htaccess文件未配置为从子目录提供drupal服务。 Only the webroot. 只有webroot。

This thread helped: 该线程帮助:

http://drupal.org/node/1585672?mode=2&sort=2 http://drupal.org/node/1585672?mode=2&sort=2

Basically I just had to edit RewriteBase on my .htaccess file to contain the value of my subdirectory. 基本上,我只需要在.htaccess文件上编辑RewriteBase即可包含子目录的值。

So for example, if I'm serving drupal from here: 因此,例如,如果我要从此处提供drupal:

http://example.com/drupal/ http://example.com/drupal/

Then I have to change the RewriteBase value in my .htaccess file to: 然后,我必须将.htaccess文件中的RewriteBase值更改为:

RewriteBase /drupal

At the beginning, I'd like to clarify that I use localhost to support Drupal. 首先,我想说明一下我使用本地主机来支持Drupal。

racl101 actually give the proper answer. racl101实际上给出了正确的答案。 Here I present my specific solution based on what racl101 gives us: 在这里,我根据racl101给我们的内容介绍我的特定解决方案:

Go to .htaccess 前往.htaccess

sudo nano .htaccess

Find RewriteBase in .htaccess (as my drupal url is localhost/~MyName/drupal/ ) .htaccess找到RewriteBase (因为我的drupal url是localhost/~MyName/drupal/

I uncomment RewriteBase and change it to RewriteBase /~MyName/drupal/ 我取消注释RewriteBase并将其更改为RewriteBase /~MyName/drupal/

Then it works. 然后就可以了。 Good luck! 祝好运!

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

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