manolo_asdf Posted December 2, 2007 Share Posted December 2, 2007 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 More sharing options...
trq Posted December 3, 2007 Share Posted December 3, 2007 Use a ServerAlias. Servername www.mydomain.org ServerAlias www.mydomain.com Link to comment https://forums.phpfreaks.com/topic/79840-redirect-or-rewrite-to-single-domain/#findComment-405423 Share on other sites More sharing options...
manolo_asdf Posted December 11, 2007 Author Share Posted December 11, 2007 thanks for suggestion, but it does not work. when entering http://mydomain or http://www.mydomain.com i still don't get redirected to http://www.mydomain.org Link to comment https://forums.phpfreaks.com/topic/79840-redirect-or-rewrite-to-single-domain/#findComment-412124 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.