2017-11-17 14 views
0

ここではすべての回答を100回読んでいるに違いないが、まだ動作しない(おそらく私のVPS)彼らはそれをひっくり返すこともできません。301 htaccessなどのhttps(古いサイト)からhttp(新しいサイト)へのリダイレクト

旧ウェブサイトhttps://www.olddomain.co.uk私は301から新しいウェブサイトhttp://newdomain.comに行きたいです。

私は考えられるすべてのhtaccessコード/ルールを試してみましたが、それでもいいことはありません。

私は以下の2つですが、htaccessがSSLを認識せず、リダイレクトするためのルールを実行しているようです。

RewriteEngine on 

# First rule - if this is an SSL connection, then redirect 
# to http://enginecoreplugs.com then stop processing other rules 
RewriteCond %{HTTPS} on 
RewriteRule (.*) http://enginecoreplugs.com/$1 [R=301,L] 

# Second rule - all other requests, redirect to http://enginecoreplugs.com. 
RewriteRule (.*) http://enginecoreplugs.com/$1 [R=301,L] 

OR

RewriteEngine On 
RewriteCond %{HTTPS} on 
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] 

それがすべてで助けている場合

は、古いウェブサイトは、私は301 = https://www.enginecoreplugs.co.uk新しいウェブサイト= http://enginecoreplugs.comたいと思っています。

ありがとうございます!

will

答えて

0

私はすべて正しいものを持っていました。

これは、httpsのバージョンを転送するホストでいくつかのばかげた問題であった。

関連する問題