Clean Urls 的设置问题

由 georgetao 于 周四, 2008-05-15 17:01 提交。

Clean Urls 的设置问题
各位大哥,请问你们有没有碰到在设置clean urls 的时候,那个disable的按钮时灰色的阿,根本不能选阿!

# Rewrite current-style URLs of the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

# Rewrite current-style URLs of the form 'index.php?q=x'.
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

这个的搞法搞了几遍都不行啊!

附件大小
clean_urls.JPG31.01 千字节

不太明白你的意思,

不太明白你的意思,你要说enable不能选还会说说办法,disable不能选的时候就是不能enable造成的,难道你现在是enable状态?

-------

http://fhileo.cn
http://www.networkdictionary.com
http://www.networkdictionary.cn

我的一直是disable状态

我的一直是disable状态,想转换成enable状态,但是因为按钮是灰色的阿,不能把系统转换成到enable的状态,晕阿,

还有就是我用的是godaddy的linux的系统,应该不是iis的巴?

注意环境是否符合要求

http://www.drupalchina.org/node/1098
请参看这个帖子。注意你用的系统类别,是否安装了插件。

你先跑 run the clean url

你先跑 run the clean url test,然后在回头看看。
tripgardne.com

系统不行,run了之后

系统不行,run了之后,不能进入页面!

我碰到过你这样的问题~~

从你说的情况来看,你碰到的问题和我碰到过的基本一样,稍有区别的是,我运行测试是通过且正常的,但是就是按钮时灰色的,后来放狗,搜了一下,应该是和服务器的Rewrite有关,你可以用 drupal + 简洁链接 为关键词搜索一下看看相关的资料,当然本站的资料里已经有了一篇很详细的文档了,我就是按照上面的做法解决掉的~~http://www.drupalchina.org/node/1245

clean url的问题已经解决了

clean url的问题已经解决了

目前我也不知道到底问题出在哪里,不过我是这样解决的,
用的主机是godaddy的虚拟的主机。
原先的装的drupal的系统都是通过解压缩之后用FTP上传到文档里面的,之后在通过域名的访问进入的安装程序的,所以一直问题不断,想尽了个种办法都不行,在drupal.org中找了很多的文章来解决,最终的下场是不能访问。同时我用了很多的版本来测试这个问题,包括4.7/5.7/6.1都试过了,都不能解决这个问题的。
后来我看到godaddy中他本身的安装系统就可以帮你做这个事情的,他们会帮你安装drupal6.2的系统,我就在ftp中把所有的文档都删除了,然后让godaddy自己帮我安装这个系统,只要把。httpaccess 中的rewrite 前面的#去除之后,在去访问自己的网站,clean url这个enable按钮可以实现了。

或许是godaddy不是很支持你自己用FTP从后台安装的缘故!

# Various rewrite rules.

# Various rewrite rules.

RewriteEngine on

# If your site can be accessed both with and without the 'www.' prefix, you
# can use one of the following settings to redirect users to your preferred
# URL, either WITH or WITHOUT the 'www.' prefix. Choose ONLY one option:
#
# To redirect all users to access the site WITH the 'www.' prefix,
# (http://example.com/... will be redirected to http://www.example.com/...)
# adapt and uncomment the following:
# RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
# RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
#
# To redirect all users to access the site WITHOUT the 'www.' prefix,
# (http://www.example.com/... will be redirected to http://example.com/...)
# uncomment and adapt the following:
# RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
# RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]

# Modify the RewriteBase if you are using Drupal in a subdirectory or in a
# VirtualDocumentRoot and the rewrite rules are not working properly.
# For example if your site is at http://example.com/drupal uncomment and
# modify the following line:
# RewriteBase /drupal
#
# If your site is running in a VirtualDocumentRoot at http://example.com/,
# uncomment the following line:
RewriteBase /

# Rewrite URLs of the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

# $Id: .htaccess,v 1.90 2007/10/05 14:43:23 dries Exp $

“Rewrite URLs of the form 'index.php?q=x'”前加上#就好了。