htaccess redirect from www to https issue

  • Unknown's avatar

    Hi there,
    I have the below code in my htaccess to direct to https.
    Recently I have needed to add more code to make sure my site redirects from index.php to just the domain as otherwise I get a duplicate page at mysite.com.au and mysite.com.au/index.php

    I have been trying to find an efficient method of doing this as well as 301 redirecting to https.
    The code posted below redirects the index fine and also non-www but if http is inputted it does not go to https. Can anyone see what is wrong

  • Unknown's avatar

    Hi there,
    I have the below code in my htaccess to direct to https.
    Recently I have needed to add more code to make sure my site redirects from index.php to just the domain as otherwise I get a duplicate page at Htaccess Redirect Generator mysite.com.au and mysite.com.au/index.php

    I have been trying to find an efficient method of doing this as well as 301 redirecting to https.
    The code posted below redirects the index fine and also non-www but if http is inputted it does not go to https. Can anyone see what is wrong

  • Howdy –

    Thanks for getting in touch. Can you share the URL for the site that you’re working on?

    With WordPress.com’s managed hosting environment you don’t have to worry about SSL certificates or redirects because that is already built in to what we do here.

  • The topic ‘htaccess redirect from www to https issue’ is closed to new replies.