andylord56 Posted November 2, 2014 Share Posted November 2, 2014 so i have a number of websites on a server all work fine but when i put https:// in front of the other sites on the website's it redirects to another site on the server without changing domain name. example: http://www.example.com works fine https://www.example.com shows another site on the server how can i stop this? i tryed mod rewrites in htaccess but somehow isnt working? Quote Link to comment https://forums.phpfreaks.com/topic/292234-https/ Share on other sites More sharing options...
jeffreyappel Posted April 8, 2015 Share Posted April 8, 2015 Use either 301 (Permanent) Redirect or 302 (Temporary) Redirect in the .htaccess file.This example may direct you: # This allows you to redirect your entire website to any other domain permanently. Redirect 301 / http://mt-example.com/ # This allows you to redirect your entire website to any other domain temporarily Redirect 302 / http://mt-example.com/ Quote Link to comment https://forums.phpfreaks.com/topic/292234-https/#findComment-1508492 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.