code editing on .htaccess file to point to https -
regarding .htaccess file, have edit on htaccess code direct https?
i have read other q/a code seems larger those
my website on wordpress
directoryindex index.php # begin w3tc browser cache <ifmodule mod_deflate.c> <ifmodule mod_headers.c> header append vary user-agent env=!dont-vary </ifmodule> addoutputfilterbytype deflate text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/json <ifmodule mod_mime.c> # deflate extension addoutputfilter deflate js css htm html xml </ifmodule> </ifmodule> # end w3tc browser cache # begin w3tc page cache core <ifmodule mod_rewrite.c> rewriteengine on rewritebase / rewritecond %{http:accept-encoding} gzip rewriterule .* - [e=w3tc_enc:_gzip] rewritecond %{http_cookie} w3tc_preview [nc] rewriterule .* - [e=w3tc_preview:_preview] rewritecond %{request_method} !=post rewritecond %{query_string} ="" rewritecond %{request_uri} \/$ rewritecond %{http_cookie} !(comment_author|wp\-postpass|w3tc_logged_out|wordpress_logged_in|wptouch_switch_toggle) [nc] rewritecond "%{document_root}/wp-content/cache/page_enhanced/%{http_host}/%{request_uri}/_index%{env:w3tc_preview}.html%{env:w3tc_enc}" -f rewriterule .* "/wp-content/cache/page_enhanced/%{http_host}/%{request_uri}/_index%{env:w3tc_preview}.html%{env:w3tc_enc}" [l] </ifmodule> # end w3tc page cache core # begin wordpress <ifmodule mod_rewrite.c> rewriteengine on rewritebase / rewriterule ^index\.php$ - [l] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule . /index.php [l] </ifmodule> # end wordpress
using website replace example.com/yourdomain.com
the code .htaccess file is:
rewriteengine on rewritecond %{http_host} ^typrograms\.com [nc] rewritecond %{server_port} 80 rewriterule ^(.*)$ https://www.typrograms.com/$1 [r,l]
just code similar this. if don't see it, add right underneath rewriteengine on
just little side note:make sure website supports https first! won't work otherwise.
i think code needs go @ top of page. (above first # at-least)
Comments
Post a Comment