+ Reply to Thread
Results 1 to 4 of 4




  

Thread: Redirecting http to https using .htaccess

      
  1. #1
    Jedi Master Chuman is on a distinguished road Chuman's Avatar
    Join Date
    April 18, 2008
    Posts
    184
    Rep Power
    5
    Feedback Score
    0

    Default Redirecting http to https using .htaccess

    I want to redirect Domain Name Registration, E-mail, Web Hosting to https://secure.mydomain.com

    I used this code from searching in google but it's not working. Please help me do it properly

    RewriteEngine On
    RewriteCond %{HTTPS} !=on
    RewriteRule ^secured(.*) https://secure.mydomain.com/$1 [R,L]

  2. #2
    Grand Masters vectro is just really nicevectro is just really nicevectro is just really nicevectro is just really nicevectro is just really nicevectro is just really nicevectro is just really nicevectro is just really nice vectro's Avatar
    Join Date
    September 5, 2008
    Location
    U.S.A.
    Posts
    1,499
    Rep Power
    4
    Feedback Score
    0

    Default Re: Redirecting http to https using .htaccess

    Try this instead. This should work:

    RewriteEngine on
    Redirect 301 http://secure.mydomain.com https://secure.mydomain.com
    Vectro Web Hosting - Web hosting with solid tech support.

    x Proxy Host - Affordable PHP proxy hosting with proxy-specific features.

  3. #3
    Jedi Master Chuman is on a distinguished road Chuman's Avatar
    Join Date
    April 18, 2008
    Posts
    184
    Rep Power
    5
    Feedback Score
    0

    Default Re: Redirecting http to https using .htaccess

    Hello vetro the code you provided doesn't work just tested and no positive result.

    I also used this but doesn't work

    RewriteEngine On
    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$ https://secure.mydomain.com/$1 [R,L]

  4. #4
    Grand Masters vectro is just really nicevectro is just really nicevectro is just really nicevectro is just really nicevectro is just really nicevectro is just really nicevectro is just really nicevectro is just really nice vectro's Avatar
    Join Date
    September 5, 2008
    Location
    U.S.A.
    Posts
    1,499
    Rep Power
    4
    Feedback Score
    0

    Default Re: Redirecting http to https using .htaccess

    Is this a shared hosting account or a dedicated server? If it is shared ask your host if they allow you to use .htaccess and if they do what restrictions are on it. Different hosts put different limits on how much you can actually override using .htaccess.
    Vectro Web Hosting - Web hosting with solid tech support.

    x Proxy Host - Affordable PHP proxy hosting with proxy-specific features.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. vbulletin redirect http: to http://www.
    By EmmaB in forum Forum Management
    Replies: 4
    Last Post: Oct 1st, 2008, 7:29 am
  2. Cloaking and redirecting
    By iowadawg in forum Marketing 101
    Replies: 2
    Last Post: Jan 18th, 2007, 5:12 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
WebTalkForums
WebTalkForums
Recent Forum Threads