Enable Clean URLs in Drupal

在Drupal中,如果要在Page中用PHP來傳遞參數到當前Script的超鏈接中,需要Enable Clean URLs。

 

    我的情況是修改了httpd.conf以下地方,才能enable clean urls。

 

1. Comment AllowOverride None(Line 293)

 

# First, we configure the "default" to be a very restrictive set of
# features. 
#
<Directory />
    Options FollowSymLinks
#    AllowOverride None
</Directory>

 

2. Modify None to All (Line 327)

 

# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
#   Options FileInfo AuthConfig Limit
#
    AllowOverride ALL

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章