//kaskus //kaskus

redirect dari http ke ssl

barusan browsing nyari2 gimana yah cara redirect paksa, dari http ke ssl kalau server kita udah ada sertifikatnya. Akhirnya ketemu juga nih caranya…

1. masuk ke directory web lu,
2. buat file htaccess
$ vim .htaccess

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

sampe sini, kalo lu masuk ke web lu misal, http://weblu[dot]com maka akan langsung masuk ke https://weblu[dot]com

semoga bermanfaat

–sumber http://rody.blog.umm.ac.id/redirect-dari-http-ke-https.jsp

Share this Post:
Digg Google Bookmarks reddit Mixx StumbleUpon Technorati Yahoo! Buzz DesignFloat Delicious BlinkList Furl

2 Responses to “redirect dari http ke ssl”

  • narko says:

    artikel yang bermanfaat gan.. :beer:

    webnya dingin euy…. :takut

  • de_3 says:

    @narko: wogh dingin gmn gan ? .. disni panas gila padahal :ngakak.. ane paling ga bisa nulis masalahnya ni gan … btw, thx udah mampir gan :beer: , thx juga buat emoticon nya … :kiss

  • Leave a Reply:

    Name (required):
    Mail (will not be published) (required):
    Website:
    Comment (required):
    XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">