Go Daddy 无法加载 Drupal Clean URLs 解决方案

on 2009年4月27日

无法加载 Clean URLs,
提示:
This option makes Drupal emit "clean" URLs (i.e. without ?q= in the URL).

Your system configuration does not currently support this feature. The handbook page on Clean URLs has additional troubleshooting information.

官方解决方案

其它解决方案如下:

I just tried vangorra's solution on a GoDaddy Deluxe Linux hosting plan, and can confirm that it works!

Thank you very much, vangorra, you just saved me a LOT of trouble, and many other people as well, I suspect.

The mod_rewrite and Clean URLs were not working at all for me before this, and now they do. I simply added this line:

RewriteBase /

Before the first "RewriteCond" line and now it works perfectly.

(Note: My site is currently hosted on a subdomain while under development, so my confirmation here refers to that case. The Drupal site, in my case, is in a subdirectory called "/development" and the so the site is at "development.mydomain.com". I'm guessing this fix will also work fine for normal sites which are in the web root, but that I can't say I've confirmed.)

======

I would also like to confirm that the clean URL's work with godaddy hosting.

Details :

Drupal 5.1
Godaddy Deluxe Linux Hosting

Uncommenting the "Rewritebase / " in the .htaccess was all that I needed to get clean URL's working. Easy.

Thanks Vangorra

0 评论: