11
shagreel
Re: domain.com & www.domain.com
  • 2004/3/9 19:54

  • shagreel

  • Just popping in

  • Posts: 13

  • Since: 2003/1/17


I am not sure I understand the problem completely, but I will throw out an idea anyway. I have had problems using virtual servers before and I had to change HTTP_HOST to SERVER_NAME and then everything worked fine. HTTP_HOST refers to the actual machine name, SERVER_NAME will get the virtual name from apache. If that helps, I can point out at least one more place you will want to change the same thing.

12
phatty
Re: domain.com & www.domain.com
  • 2004/3/9 22:26

  • phatty

  • Just popping in

  • Posts: 70

  • Since: 2004/3/9 2


Not totally off topic but I have a similar issue. I have XOOPS 2.0.5 installed in a subdomain such as:

xxxx.mydomain.com

When I point my real domain http://www.mydomain.com for that site to XOOPS it comes up showing:

xxxx.mydomain.com

instead of http://www.mydomain.com

My hosting provider said that because index.php has a redirect in it that there is no way around this issue. Does anybody have a suggestion or fix for this?

Thanks in advance for any help

Jeff

13
phppp
Re: domain.com & www.domain.com
  • 2004/3/9 22:47

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


Quote:

shagreel wrote:
I am not sure I understand the problem completely, but I will throw out an idea anyway. I have had problems using virtual servers before and I had to change HTTP_HOST to SERVER_NAME and then everything worked fine. HTTP_HOST refers to the actual machine name, SERVER_NAME will get the virtual name from apache. If that helps, I can point out at least one more place you will want to change the same thing.


Using SERVER_NAME will work if you use http://www.domain.com in the mainfile.php. If you use domain.com, it will be the same problem.

Actually there is a solution using neither SERVER_NAME nor HTTP_HOST for this specific issue. It works but I look forward to an official solution available.

14
phppp
Re: domain.com & www.domain.com
  • 2004/3/9 22:50

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


Quote:

When I point my real domain http://www.mydomain.com for that site to XOOPS it comes up showing:
xxxx.mydomain.com
instead of http://www.mydomain.com


Don't understand well.

have you changed XOOPS_URL in mainfile.php?

15
phatty
Re: domain.com & www.domain.com
  • 2004/3/9 23:02

  • phatty

  • Just popping in

  • Posts: 70

  • Since: 2004/3/9 2


If i change the URL in the mainfile I get errors.


Let me try to explain it more clearly.

This is the site:

http://xxxx.mydomain.com/

but I have a domain name registered that points to that subdomain. Trouble is when you type in http://www.mydomain.com it redirects to http://xxxx.mydomain.com/ instead of staying at http://www.mydomain.com

16
Imgonna
Re: domain.com & www.domain.com
  • 2004/3/15 12:46

  • Imgonna

  • Just popping in

  • Posts: 8

  • Since: 2004/2/22


Forgive me for jumping in here, but I have a similar problem that is really defying me to sort out:

I have an XOOPS installation at: http://www.imgonna.co.uk -- all works -well, with all functions correct

I have the domain name http://www.5th-way.co.uk forwarded to http://www.imgonna.co.uk.

If you log on via http://www.5th-way.co.uk all is well, until you navigate away from the site. If you return to http://www.5th-way.co.uk and try to log on, it processes the log on and says its OK -- BUT does not actually change to logged on status.

If you go back to http://www.imgonna.co.uk, log on and log off again, then the http://www.5th-way.co.uk log on process will work.

I guess the domain forwarding is messing round with something, but I am unlear what to try -- any suggestions???

Cheers

Glen

17
DonXoop
Re: domain.com & www.domain.com

This topic has reared it's ugly head again..

There are many combinations of DNS/registrar/URL forwarding etc possible before it gets to Xoops.

Personally I don't like URL forwarding as each system seems to do it differently. I much prefer a CNAME entry in DNS and a properly configured web server.

So, if for example you have XOOPS configured for http://www.mydomain.com and you have maybe a dynamic IP you can use a dynamic IP service like dyndns you might have a DNS entry like mydynamicIP.otherdomain.com . In your domain's DNS you would configure http://www.mydomain.com as a CNAME (alias) pointing to mydynamicIP.otherdomain.com .

Your mainfile.php is configured for the desired http://www.mydomain.com and the users use that URL.

Another issue is from multiple DNS entries that get to the same server. After the first click you get an internal redirect to the mainfile.php configured URL. A direct link to a login page will break a login session if the redirect is different than the initial URL.

Here is what I do for that, note that I have full control of the DNS and Apache configs:

Besides the normal virtual server config (NameVirtualHost) set to match the mainfile.php settings I set-up another NameVirtualHost. This virtual server is set with all the possible variations (ServerName, ServerAlias) that might lead to my server (mydomain.com, direct IP, somethingelse.mydomain.com, etc.). The request is then Redirected to the proper URL and virtual server.

This makes all requests end up at the proper server with the proper URL.

18
Imgonna
Re: domain.com & www.domain.com
  • 2004/3/15 15:59

  • Imgonna

  • Just popping in

  • Posts: 8

  • Since: 2004/2/22


Thanks DX

I have changed from URL forwarding to mapping the domain into my server -- just going down the CNAME route. Fingers crossed

Looking forward to moving forward.

Thanks again DX

Glen

19
phatty
Re: domain.com & www.domain.com
  • 2004/3/15 16:06

  • phatty

  • Just popping in

  • Posts: 70

  • Since: 2004/3/9 2


OK, i'm a little confused by all this but... i've changed hosts and here my issue:

http://www.mysite.com gets me to my front page of the XOOPS site and reads http://www.mysite.com in the address bar. But...

If I navigate anywhere else after getting there including coming back to the main page I end up with:

http://mysite.com in the address bar.

I just want to keep the http://www.mysite.com all the time and just don't know how. Anyone?

Jeff

20
DonXoop
Re: domain.com & www.domain.com

Check your mainfile.php file. I'll bet that you have mysite.com as the URL instead of http://www.mysite.com. That is why you are being redirected. If you prefer http://www.mysite.com then put that in the mainfile.php. you're almost there....

Login

Who's Online

273 user(s) are online (195 user(s) are browsing Support Forums)


Members: 0


Guests: 273


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits