wildcard 還要配和 httpd.conf 囉,所以主機要支援…
這裡有提到
http://vbb.twftp.org/showthread.php?t=13284
1W 的功能, 需要 webserver 與 dns 兩個一起設定, 非單一的 dns 主機可以搞定的 ...
通常設定會像這樣
http://www.domainclub.org/showthread...464#post130464
修改httpd.conf文件.(以域名
www.yourhost.com為例)
<VirtualHost *:80>
ServerName
www.yourhost.com
ServerAlias *.yourhost.com
DocumentRoot web根目錄絕對地址比如:/home/wordpress
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^(.*)/([a-z0-9\-\x80-\xff]+)$ $1/index.php?domainname=$2 [L]
</IfModule>
</VirtualHost>
修改後重啟apache