I Need Help with REdirect from HTTP to HTTPS

 

Results 1 to 12 of 12
hi there! can anybody help me, how to make a code to redirect from http ...
  1. #1
    dudemike's Avatar
    dudemike is offline Regular Member
    Join Date
    Jan 2009
    Posts
    441
    Thanks
    162
    Thanked 76 Times in 43 Posts

    Question I Need Help with REdirect from HTTP to HTTPS

    hi there!

    can anybody help me, how to make a code to redirect from http to https in wordpress so i can use also subdomains also ex. http://one.mydomain.com to https://one.mydomain.com

    any suggestion will do thanks




  2. #2
    pander is offline Newbies
    Join Date
    Dec 2012
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: I Need Help with REdirect from HTTP to HTTPS

    Can you give a little more information?

    Does it need to be a link/button or automated?

  3. #3
    qrazy's Avatar
    qrazy is offline Senior Member
    Join Date
    Mar 2012
    Posts
    853
    Thanks
    922
    Thanked 904 Times in 412 Posts

    Default Re: I Need Help with REdirect from HTTP to HTTPS

    First you should install or enable SSL(Secure Socket Layer) in your server to have https url.

  4. #4
    Daniel0cean is offline Regular Member
    Join Date
    Aug 2010
    Location
    OnLine
    Posts
    472
    Thanks
    18
    Thanked 115 Times in 66 Posts

    Default Re: I Need Help with REdirect from HTTP to HTTPS

    use this mod_rewrite code in your .htaccess to force SSL:

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

  5. The Following User Says Thank You to Daniel0cean For This Useful Post:

    dudemike (12-10-2012)

  6. #5
    GiorgioB's Avatar
    GiorgioB is offline Supreme Member
    Join Date
    Feb 2012
    Location
    Touching the Sky
    Posts
    1,233
    Thanks
    629
    Thanked 1,245 Times in 629 Posts

    Default Re: I Need Help with REdirect from HTTP to HTTPS

    That has nothing to do with your domain but with your website. Your domain is one.mydomain.com. To allow an ecrypted connection, you need to install a SSL on your server.

  7. #6
    phpdecoder is offline Newbies
    Join Date
    Sep 2012
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: I Need Help with REdirect from HTTP to HTTPS

    You will need SSL certificate for redirecting your domain to HTTPS . Google for SSL certificate installation on cpanel.You will get lots of useful & easy tuts.

  8. #7
    princely is offline Newbies
    Join Date
    Dec 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default I Need Help with images displaying dynamicly

    hi everyone. i need a help. im doing a classified website.i want the advertisements to be displayed when each category is clicked
    if any one know the coding for it kindly help me. thank u so so much

  9. #8
    seoways's Avatar
    seoways is offline An Average Marketer
    Join Date
    Dec 2009
    Location
    Very closer to YOU
    Posts
    2,335
    Thanks
    744
    Thanked 535 Times in 210 Posts

    Default Re: I Need Help with REdirect from HTTP to HTTPS

    Dudemike,

    You should purchase SSL certificate from your domain registrar or your webhosting company. After that you can install SSL to your cpanel, and you jus rewrite htaccess.

  10. #9
    dudemike's Avatar
    dudemike is offline Regular Member
    Join Date
    Jan 2009
    Posts
    441
    Thanks
    162
    Thanked 76 Times in 43 Posts

    Default Re: I Need Help with REdirect from HTTP to HTTPS

    thanks guys for reply, well what i did i purchased ssl through godaddy and they told me that i need to talk to my webmaster the problem is i got this wordpress theme long ago and cant get in touch with the company, btw the reason i needed subdomain to have https is cause i have a game for fb and on app they ask http address and https address....

  11. #10
    Jenny30 is offline Jr. VIP
    Join Date
    Feb 2012
    Posts
    476
    Thanks
    13
    Thanked 28 Times in 23 Posts

    Default Re: I Need Help with REdirect from HTTP to HTTPS

    So you got ssl so does it work now?? is it converted to https??

  12. #11
    dudemike's Avatar
    dudemike is offline Regular Member
    Join Date
    Jan 2009
    Posts
    441
    Thanks
    162
    Thanked 76 Times in 43 Posts

    Default Re: I Need Help with REdirect from HTTP to HTTPS

    no they told me i have to create redirect

  13. #12
    dudemike's Avatar
    dudemike is offline Regular Member
    Join Date
    Jan 2009
    Posts
    441
    Thanks
    162
    Thanked 76 Times in 43 Posts

    Default Re: I Need Help with REdirect from HTTP to HTTPS

    thank you dude i did it and it works thanks a lot


    Quote Originally Posted by Daniel0cean View Post
    use this mod_rewrite code in your .htaccess to force SSL:

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


Similar Threads

  1. How to convert from http to https?
    By fifty875 in forum Web Hosting
    Replies: 0
    Last Post: 10-15-2012, 08:39 PM
  2. Http to Https issue
    By jvmartija in forum White Hat SEO
    Replies: 3
    Last Post: 07-07-2012, 03:34 PM
  3. Google indexed HTTPS instead of HTTP
    By Powelly in forum White Hat SEO
    Replies: 2
    Last Post: 02-07-2012, 08:35 AM
  4. Replies: 4
    Last Post: 12-26-2010, 03:46 PM
  5. Https to http redirect problem
    By tomksoft in forum Cloaking and Content Generators
    Replies: 0
    Last Post: 05-01-2009, 06:34 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




BlackHatWorld on Twitter BlackHatWorld on FaceBook


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103