プロが教えるわが家の防犯対策術!

.htaccessに以下の2つの処理を書きたいのですが、
単純に空行をあけて続けて書いてよいのでしょうか。

これと、
 RewriteEngine on
 RewriteCond %{HTTP_HOST} ^www\.example\.com
 RewriteRule (.*) http://example.com/" target="_blank" rel="nofollow">http://example.com/ [R=301,L]

これ
 Redirect permanent /example/ http://example.com/

この2つを単純に、

 RewriteEngine on
 RewriteCond %{HTTP_HOST} ^www\.example\.com
 RewriteRule (.*) http://example.com/" target="_blank" rel="nofollow">http://example.com/ [R=301,L]

 Redirect permanent /example/ http://example.com/

のように書いて大丈夫なのかということです。
初歩的な質問ですが、宜しくおねがい致します。

A 回答 (1件)

空行をあける必要はありません。

    • good
    • 0
この回答へのお礼

ご回答ありがとうございました。

お礼日時:2013/01/19 07:56

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!