wordpress - .htaccess - how to force https -


i want redirect traffic ssl secured site bookmywash.co.uk. have searched how on stack , google. have seen few codes have not worked.

this wordpress site, when try navigate site within 1and1 web control panel site goes http s://bookmywash.co.uk/ , error occurred during connection bookmywash.co.uk. peer reports experienced internal error. error code: ssl_error_internal_error_alert error.

i contacted host (1and1.co.uk) , sent link states use

rewriteengine on  rewritecond % {http_host} !^www\.domain\.com$ [nc] rewriterule ^(.*)$ http: //www.domain. com/$1 [r=301,l] 

the code above doesn't work , maybe not editing correctly. full .htccess file content below:

<ifmodule mod_deflate.c>     addoutputfilterbytype deflate text/plain     addoutputfilterbytype deflate text/html     addoutputfilterbytype deflate text/xml     addoutputfilterbytype deflate text/css     addoutputfilterbytype deflate application/xml     addoutputfilterbytype deflate application/xhtml+xml     addoutputfilterbytype deflate application/rss+xml     addoutputfilterbytype deflate application/javascript     addoutputfilterbytype deflate application/x-javascript     addoutputfilterbytype deflate image/svg+xml </ifmodule>  <ifmodule mod_expires.c>     expiresactive on     expiresbytype text/css a2419200     expiresbytype text/x-component a2419200     expiresbytype application/x-javascript a2419200     expiresbytype application/javascript a2419200     expiresbytype text/javascript a2419200     expiresbytype text/x-js a2419200     expiresbytype text/html a3600     expiresbytype text/richtext a3600     expiresbytype image/svg+xml a3600     expiresbytype text/plain a3600     expiresbytype text/xsd a3600     expiresbytype text/xsl a3600     expiresbytype text/xml a3600     expiresbytype video/asf a2419200     expiresbytype video/avi a2419200     expiresbytype image/bmp a2419200     expiresbytype application/java a2419200     expiresbytype video/divx a2419200     expiresbytype application/msword a2419200     expiresbytype application/vnd.ms-fontobject a2419200     expiresbytype application/x-msdownload a2419200     expiresbytype image/gif a2419200     expiresbytype application/x-gzip a2419200     expiresbytype image/x-icon a2419200     expiresbytype image/jpeg a2419200     expiresbytype application/json a2419200     expiresbytype application/vnd.ms-access a2419200     expiresbytype audio/midi a2419200     expiresbytype video/quicktime a2419200     expiresbytype audio/mpeg a2419200     expiresbytype video/mp4 a2419200     expiresbytype video/mpeg a2419200     expiresbytype application/vnd.ms-project a2419200     expiresbytype application/x-font-otf a2419200     expiresbytype application/vnd.ms-opentype a2419200     expiresbytype application/vnd.oasis.opendocument.database a2419200     expiresbytype application/vnd.oasis.opendocument.chart a2419200     expiresbytype application/vnd.oasis.opendocument.formula a2419200     expiresbytype application/vnd.oasis.opendocument.graphics a2419200     expiresbytype application/vnd.oasis.opendocument.presentation a2419200     expiresbytype application/vnd.oasis.opendocument.spreadsheet a2419200     expiresbytype application/vnd.oasis.opendocument.text a2419200     expiresbytype audio/ogg a2419200     expiresbytype application/pdf a2419200     expiresbytype image/png a2419200     expiresbytype application/vnd.ms-powerpoint a2419200     expiresbytype audio/x-realaudio a2419200     expiresbytype image/svg+xml a2419200     expiresbytype application/x-shockwave-flash a2419200     expiresbytype application/x-tar a2419200     expiresbytype image/tiff a2419200     expiresbytype application/x-font-ttf a2419200     expiresbytype application/vnd.ms-opentype a2419200     expiresbytype audio/wav a2419200     expiresbytype audio/wma a2419200     expiresbytype application/vnd.ms-write a2419200     expiresbytype application/font-woff a2419200     expiresbytype application/vnd.ms-excel a2419200     expiresbytype application/zip a2419200 </ifmodule>  <ifmodule mod_rewrite.c>     rewriteengine on     rewritebase /      rewritecond %{server_port} 80     rewriterule ^(.*)$ https://%{http_host}/$1 [r,l]      rewriterule ^index\.php$ - [l]     rewritecond %{request_filename} !-f     rewritecond %{request_filename} !-d     rewriterule . /index.php [l] </ifmodule>  addhandler x-mapp-php5.5  .php 

thanks alot help


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -