Jump to content

https


andylord56

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/292234-https/
Share on other sites

  • 5 months later...

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/
Link to comment
https://forums.phpfreaks.com/topic/292234-https/#findComment-1508492
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.