1
Beserker1971
XOOPS_URL problem

heya

ok i went with the new version to check it out. i can install it fine but found nobody could register or login and the reason is the XOOPS_URL

// XOOPS Physical Path
// Physical path to your main XOOPS directory WITHOUT trailing slash
define('XOOPS_ROOT_PATH', 'C:/Inetpub/MagiKnights');

// XOOPS Virtual Path (URL)
// Virtual path to your main XOOPS directory WITHOUT trailing slash
define('XOOPS_URL', 'http://212.159.112.62');


the above 212.159.112.62 is my ip address and it works fine for everyone EXCEPT ME! i cant browse to the site as im hosting it. i need it so that it works for me and everyone remotely.

can anyone help please?

2
skalpa
Re: XOOPS_URL problem
  • 2004/11/29 1:11

  • skalpa

  • Quite a regular

  • Posts: 300

  • Since: 2003/4/16


You can change the XOOPS_URL definition according to specific condition. So, if you access your site locally using http://localhost/, you can try to do this:
if ( $_SERVER['HTTP_HOST'] == 'localhost' ) {
    
define'XOOPS_URL''http://localhost' );
} else {
    
define('XOOPS_URL''http://212.159.112.62');
}


skalpa.>

3
Beserker1971
Re: XOOPS_URL problem

think i kinda spammed the place. sorry i did double post by accident.

i tried that out and it works - thats great. this topic should be sticky :)

thank you!

Login

Who's Online

153 user(s) are online (50 user(s) are browsing Support Forums)


Members: 0


Guests: 153


more...

Donat-O-Meter

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

Latest GitHub Commits