2014-07-01 56 views

回答

1

嘗試:

RewriteEngine On 
RewriteCond %{HTTP_HOST} ^my\.subdomain\.com$ [NC] 
RewriteRule ^(.*)\.(php|html)$ - [L,F] 
0

把這個代碼在你DOCUMENT_ROOT/.htaccess文件:

RewriteEngine On 

RewriteCond %{HTTP_HOST} ^my\.subdomain\.com$ 
RewriteRule \.(php|html)$ - [NC,F]