在項目下添加
內容如下
<Files
deny from all
</Files>
Options
Options +FollowSymLinks
<IfModule mod_rewrite
# For security reasons
# Options +FollowSymLinks
# Options +SymLinksIfOwnerMatch
# IndexIgnore */*
RewriteEngine on
# if a directory or a file exists
RewriteCond %{REQUEST_FILENAME} !
RewriteCond %{REQUEST_FILENAME} !
# otherwise forward it to index
RewriteRule ^(
</IfModule>
以上內容中
RewriteRule 後面的 /hangman/index
試驗了好久才成功得
From:http://tw.wingwit.com/Article/program/PHP/201311/20967.html