# Drupal的cleanURLs

- URL: https://justfly.idv.tw/drupal%e7%9a%84cleanurls/
- 日期: 2008-09-22
- 分類: WEB&amp;RIA
- 標籤: cleanURL, drupal, error, iis, WordPress

又把D6裝起來再度挑戰一次DRUPAL

想說先是個簡單的

來把簡捷網址啟動好了

參考[IIS CleanURLs using some of the available ISAPI filters](http://drupal.org/node/46429)

先到[ISAPI_Rewrite Lite](http://www.isapirewrite.com/)下載[ISAPI_Rewrite3_0056_Lite.msi](http://www.helicontech.com/download/isapi_rewrite/ISAPI_Rewrite3_0056_Lite.msi)

裝起來後

到c:\Program Files\Helicon\ISAPI_Rewrite\httpd.ini加上

```
# Accept a url with the following extensions and pass them through unchanged.
RewriteRule (.*.gif|.*.png|.*.jpg|.*.pdf|.*.js|.*.css) $1 [I,L]

# Make URLs sane
RewriteRule /index.php.* $0 [I,L]
RewriteRule /(.*)\?(.*) /index.php\?q=$1&$2 [I,L]
RewriteRule /(.*) /index.php\?q=$1 [I,L]
```

然後進IIS>網業服務延伸

把 isapi_rewrite.dll掛進來

最後到DRUPAL的settings.php中最後加上

```
$conf['clean_url'] = 1;
```

恩 結果就是DRYPAL的cleanURL可以用了

但是JustBlog就變得出奇的慢

而且管理介面也進不來

反反覆又測了幾次

果真是不行共存@@

有讓我想到我的FILCKR模組產出的相簿也一直不正常

該不會有關係吧….

總之先把它拿掉了

有機會再回來研究吧!!
