0
我有兩個域名安裝一個叫做fastcms.com,另一個叫做fastautos.com。htaccess插件域的權限
fastautos.com是總部設在/家庭/ speedycm /的public_html/fastautos/目錄我fastcms.com服務器上(作爲域附加)
問題我是現在是我想讓用戶使用fastautos.com網站,但繼續限制使用fastcms.com網站(密碼請求)。
目前這兩個網站都要求輸入密碼。我只希望它在fastcms.com網站上要求輸入密碼。
這是我目前的htaccess文件!
RewriteEngine on
AuthType Basic
AuthName "restricted area"
AuthUserFile /home/fastcm/public_html/.htpasswd
require valid-user
RewriteCond %{HTTP_HOST} ^fastautos.co.uk$ [OR]
RewriteCond %{HTTP_HOST} ^www.fastautos.co.uk$
RewriteRule ^/?$ "http\:\/\/fastcms\.co\.uk\/fastautos\/" [R=301,L]
請大家幫忙!非常感謝提前
+1。 ''和''是其他的可能性。 –
0xC0000022L
2011-03-13 15:48:20
可以請你提供一個例子 – methuselah 2011-03-13 15:55:44
看看這個文檔:http://httpd.apache.org/docs/1.3/howto/auth.html#basicworks。目錄部分是基本的Apache配置,你不會有任何麻煩,找到教程的inet。應該看起來像: Blah blah blah –
2011-03-13 16:00:54