www.webdeveloper.com
Results 1 to 3 of 3

Thread: redirect https to http

Hybrid View

  1. #1
    Join Date
    Mar 2012
    Posts
    37

    redirect https to http

    Hi There!

    I have migrated a PHP application from a https://mydomain.php to a http://mydomain.php. The problem is that an iphone application is still making AJAX requests to the older domain (https) and now the new domain is http, so all the requests are getting the untrusted connection

    For example, if I open the URL of the new domain in Firefox, but typing https instead of http, I get an “Untrusted Connection”.

    How can I avoid this??

    Does it have something to do with DNS??

    Thank you very much!
    Last edited by jessPHP; 02-20-2014 at 09:23 AM. Reason: grammar mistake

  2. #2
    Join Date
    Feb 2014
    Location
    England
    Posts
    52
    You can add this to your htaccess file, should work for what you want to do.

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

  3. #3
    Join Date
    Feb 2014
    Posts
    2
    To establish an HTTPS connection, the browser needs to trust the SSL/TLS cert installed on the search appliance. In the case where the browser displays this error, the search appliance has an SSL cert which is either self-signed or the signing certificate of authority is not trusted by your browser's configuration. thats why its showing Untrusted connection.

    You can use the above code to redirect https to http

    Hope this will help.

    Thanks

Thread Information

Users Browsing this Thread

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

Posting Permissions

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



Recent Articles