にhttps://example.comをリダイレクトします。 https://www.example.com形式にリダイレクトする必要があります。これで私を助けてください。は私のウェブサイトは、非WWWで働いていませんどのように私は<a href="https://example.com" rel="nofollow">https://example.com</a>から<a href="https://www.example.com" rel="nofollow">https://www.example.com</a></p> に私のウェブサイトをリダイレクトすることができ<p>https://www.example.com
0
A
答えて
0
1つの方法は、DNSプロバイダにリダイレクトを依頼することです。
別の方法は、この他のstackoverflowの質問で説明します:.htaccess - how to force "www." in a generic way? 基本的には、以下の作業をする必要があります:
RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC] RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
0
のhttp非WWWからサイトをリダイレクトするにhttps://wwwに次のルールを使用することができます
をRewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.
RewriteCond %{HTTPS} off
RewriteRule^https://www.example.com%{REQUEST_URI} [NE,L,R]
0
ウェブサイトとしてApacheを使用している場合は、エイリアス
<VirtualHost *:443> ServerName www.example.com ServerAlias example.com ServerAdmin [email protected] DocumentRoot /var/www/devops_blog <Directory /var/www/devops_blog> Options All AllowOverride All Require all granted </Directory>
0
我々はroute53を使用しているこの
RewriteEngine on
RewriteCond %{HTTPS_HOST} ^example\.com$ [NC]
RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L]
関連する問題
- 1. .htaccessファイルは、私はDebianの8の上だと私は<a href="http://my-domain.unice.fr/social" rel="nofollow">http://my-domain.unice.fr/social</a>でウェブサイトを持っていると私は私が持っている私の.htaccessで<a href="http://my-domain.unice./" rel="nofollow">http://my-domain.unice./</a></p> <p>でこれをリダイレクトしたい
- 2. MarkdownDeep AutoHeadingIDsが、私は私のウェブサイトに<a href="http://www.toptensoftware.com/markdowndeep/" rel="nofollow noreferrer">MarkdownDeep</a>で働いている
- 3. は、私は<a href="https://redom.js.org" rel="nofollow noreferrer">redom</a>ライブラリをインポートしようとしています
- 4. 非WWWのHTTPとHTTPSの両方</p> <p>私は<a href="http://www.website.io/paypal" rel="nofollow noreferrer">http://www.website.io/paypal</a> を行くべき</p> <p><a href="http://website.io/paypal" rel="nofollow noreferrer">http://website.io/paypal</a>をしようとしていますが、それは単にWWWに行く、
- 5. 私のウェブサイトのヘルプが必要です。 <a href=""></a>
- 6. 私の<a href=""></a>は機能していませんか?
- 7. rvestは、これは私が <a href="http://www.cpppc.org:8082/efmisweb/ppp/projectLivrary/toPPPList.do" rel="nofollow">ppp projects</a></p> <p>をscapreウェブサイトでのXPath
- 8. は、どのように私は<a href="http://controlsjs.com/" rel="nofollow">Hello demo</a></p> <p>をしようとしていた
- 9. はTypeError:、私は私のミスです<a href="http://getfirebug.com/" rel="nofollow noreferrer">Firebug</a></p> <p>と、このエラーが出るのdocument.getElementById(...)は、JavaScriptの
- 10. パスポートのコンポーネントは、私はこの<a href="https://laravel.com/docs/5.4/passport" rel="nofollow noreferrer">tutorial</a>に続い
- 11. HTML5のビデオは、私は同じコードで<a href="http://sprnv.sg" rel="nofollow noreferrer">http://sprnv.sg</a>と<a href="http://creazidigital.com/supernova" rel="nofollow noreferrer">http://creazidigital.com/supernova</a>にウェブサイトのリンク先ページにHTML5のvideoタグを含めることを試みた
- 12. 私は<a href="https://www.primefaces.org/primeng/#/" rel="nofollow noreferrer">PrimeNG</a><p> </p><a href="https://www.primefaces.org/" rel="nofollow noreferrer">primefaces.org</a>からすべてがうまく機能している使用しています
- 13. サイドバーのレイアウトは、私は私の<a href="http://emberjs.com/" rel="nofollow">ember</a>アプリで<a href="http://miguelcobain.github.io/" rel="nofollow">ember-paper</a>を使用しようとしているが、私は右にコンテンツをフロートさせることはできません
- 14. は、私は<a href="http://en.wikipedia.org/wiki/Microsoft_Blend" rel="nofollow noreferrer">Expression Blend</a> 4(<a href="https://en.wikipedia.org/wiki/Windows_Phone" rel="nofollow noreferrer">Windows Phone</a> 7のために)、私は(資産)のすべての行動がロードされている起動すると
- 15. 私は私が右上の隅にダウンロードボタンのツールチップの名前を変更するにはどうすればよい<a href="http://echarts.baidu.com/index.html" rel="nofollow noreferrer">echarts</a></p> <p><a href="https://i.stack.imgur.com/v9vvf.png" rel="nofollow noreferrer">Picture of my chart</a></p> <p>を使用しています
- 16. 私は<a href="https://omeka.org/" rel="nofollow noreferrer">Omeka</a>の私の元のインスタンスを持つリモートサーバー持って
- 17. は、私が<a href="http://en.wikipedia.org/wiki/Transact-SQL" rel="nofollow noreferrer">T-SQL</a>に新しいです
- 18. 私は<strong><a href="https://github.com/carhartl/jquery-cookie" rel="nofollow">jquery cookie</a></strong>プラグインを使用して、ここに私のコードです名前
- 19. はJQueryの.html()私は<a href="http://onsen.io" rel="nofollow noreferrer">Onsen UI</a> + jQueryのを使用してい
- 20. LinuxのAPPENDパスは、私が<a href="https://github.com/pyenv/pyenv" rel="nofollow noreferrer">pyenv</a>をインストールしている
- 21. スロー負荷最初の画像は、私のウェブサイトで、私は<a href="http://masonry.desandro.com/" rel="nofollow">masonry plugin</a>を使用してい
- 22. は私が<a href="http://livevalidation.com" rel="nofollow">livevalidation</a>プラグインを使用しています
- 23. ObjectMapperが、私は<a href="https://github.com/tristanhimmelman/AlamofireObjectMapper" rel="nofollow">AlamofireObjectMapper</a>を使用しています応答
- 24. は、私が<a href="http://apionrails.icalialabs.com/book/chapter_two" rel="nofollow">APIonRails tutorial</a>を使用しています
- 25. これは私が<a href="http://tubagency.com/" rel="nofollow">http://tubagency.com/</a></p> <p>からスクロールバーを排除しようとしていますウェブサイト私はイメージのため、このコードを持っているスクロールバー
- 26. 私はこれが<a href="https://bugs.chromium.org/p/chromedriver/issues/detail?id=294" rel="noreferrer">before</a>ことはできませんでした知っているセレン
- 27. の画像は、私はgithubのページに<a href="http://calebbertrand.github.io" rel="nofollow noreferrer">website</a>を持って
- 28. 私はリストについて<a href="http://youtu.be/ZbXSOX2kHys" rel="nofollow">this animation</a></p> <p>を作成しようとしているUICollectionView
- 29. Firefoxの/ jQueryのは、だから私は2つの画像ギャラリー、<a href="http://devkick.com/lab/galleria/" rel="nofollow noreferrer">Galleria</a>と<a href="http://leandrovieira.com/projects/jquery/lightbox/" rel="nofollow noreferrer">Lightbox</a>を結合しようとしていますimg要素
- 30. は、どのように私は、このページ<a href="https://www.lightningdesignsystem.com/icons/" rel="nofollow noreferrer">https://www.lightningdesignsystem.com/icons/</a> からファイルとしてSVGを保存したい
を試してみてください。私たちはDNSレベルで行うことはできません。私のサイトではAWSロードバランサを実行しています。 – Raj
私は試しましたが、動作しません。 – Raj
私の例は 'http'アドレスです。それを 'https'に変更してみてください。 – spitterfly