Jump to content

redirect or rewrite to single domain


manolo_asdf

Recommended Posts

hi,

 

i am having apache2 and multiple different domain-names mapping to one server/ip-adress.

but for the start all domains should go to one single point of entry like:

 

http://mydomain.org -> http://www.mydomain.org

http://mydomain.com -> http://www.mydomain.org

 

a setting like following inside http.conf would not work (because of infinite loop through the '/'):

Redirect / http://www.domain.org

 

is there a simple configuration for my purpose?

 

i also tried a more verbose version:

Redirect http://mydomain.org http://www.mydomain.org

Redirect http://www.mydomain.com http://ww.mydomain.org

 

but this did not work either.

 

i am having apache on suse linux, so config file where i set Redirects is sitting under /etc/apache2/conf.d/mypage.conf

 

thanks.

Link to comment
https://forums.phpfreaks.com/topic/79840-redirect-or-rewrite-to-single-domain/
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.