https redirection

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Danloona
    Senior Member
    • Mar 2015
    • 543
    • 4.2.5

    https redirection

    Hi again.

    I got issue with redirection.

    How I can redirect https://www.domain.co.uk to https://domain.co.uk ?

    I've added redirection on hosting panel but looks like there needs some httaccess modification as well.

    Thanks.
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 73981

    #2
    Open the .htaccess that we provide. Change:

    Code:
        #To redirect users to the secure version of your site, uncomment the lines below
        #RewriteCond %{HTTPS} !=on
        #RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
    To:
    Code:
        #To redirect users to the secure version of your site, uncomment the lines below
        RewriteCond %{HTTPS} !=on
        RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
    If the lines don't exist in your .htaccess then add the second block under the line that says #RewriteBase /.

    If that does not work, then you need to contact your host for the specific code that works for your server.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment

    • Danloona
      Senior Member
      • Mar 2015
      • 543
      • 4.2.5

      #3
      Hi, thanks for reply.
      It does work only on Opera browser, doesn't make any changes in IE. Or is because of cache?

      Comment

      • Wayne Luke
        vBulletin Technical Support Lead
        • Aug 2000
        • 73981

        #4
        IE might not be sending the correct request headers. IE is abandoned software and hasn't been developed for almost 5 years now. The redirect in .htaccess should occur before the browser gets the page so the browser cache shouldn't affect this. You'll need to ask your hosting provider for additional help on this. They may have other rules to work around the issue in IE.
        Translations provided by Google.

        Wayne Luke
        The Rabid Badger - a vBulletin Cloud demonstration site.
        vBulletin 5 API

        Comment

        • Danloona
          Senior Member
          • Mar 2015
          • 543
          • 4.2.5

          #5
          I've checked on Google chrome as well, and redirections does not work. I made some test with mâine website and redirection seems to work well. Any other ideas how I can fix this redirection?

          Comment

          • Wayne Luke
            vBulletin Technical Support Lead
            • Aug 2000
            • 73981

            #6
            You need to talk to your hosting provider. They need to provide you with the correct .htaccess code to handle the redirection specific to your server. The code above should work on most servers but it is dependent on the server's configuration. vBulletin doesn't actually handle redirection from http to https. It simply uses the URL provided in the AdminCP for any links. It has no control over incoming links it doesn't print in its HTML.
            Translations provided by Google.

            Wayne Luke
            The Rabid Badger - a vBulletin Cloud demonstration site.
            vBulletin 5 API

            Comment

            Related Topics

            Collapse

            Working...