1

誰かがこの.htaccessエントリで私を助けてくれますか

非WWWをWWWURLにリダイレクトする301のhtaccessエントリ

RewriteEngine on
RewriteCond %{HTTP_HOST} ^!acethehimalaya.com$ [NC]

RewriteRule ^(.*)$ http://www.acethehimalaya.com/$1 [R=301,L]

www.acethehimalaya.com/index.htmlをwww.acethehimalaya.comにリダイレクトする

RewriteEngine on 
RewriteCond %{REQUEST_URI} ^/index.html$ 

RewriteRule .* http://www.acethehimalaya.com/ [R=302,L]

問題が発生し、バックエンドにログインできないため、このエントリはすべて有効ですか?

4

2 に答える 2

1

すべての RewriteEngine から許可 RewriteCond %{THE_REQUEST} ^[AZ]{3,9}\ /index.php\ HTTP/ RewriteRule ^index.php$ http://kursayin.am/ [R=301,L] AddDefaultCharset utf -8

http://kursayin.am/index.php

このサイトで機能します

于 2013-01-27T10:11:10.527 に答える
0

RewriteEngine オン

RewriteCond %{THE_REQUEST} ^[AZ]{3,9}\ /index.html\ HTTP/

RewriteRule ^index.html$ http://acethehimalaya.com/ [R=301,L]

:)これを試してください私は自分のサイトにそのようなコードを使用しています

于 2013-01-27T09:38:43.980 に答える