I recently bought a new domain, and successfully set it up. I thought everything was working pefectly, but when i tried to login to the phbb forums, the login button was linked to my old domain. I would get to the login.php page, but when i actually typed in my username and password, thren clicked login, it wouldn't work. From there I would have to go into the adress bar, and change the domain from the old one, to my newer one. Does anybody know how i can fix this?
changed domaine name, now login page wont work in phbb2
You must have FTP access to your site. Modify login.php via ftp, and there you go! (And use a relative URL if it's possible!)
ok thanks, ill try that when frih.net is back online.
have a look at this...
http://www.frihost.com/forums/vt-25928.html
http://www.frihost.com/forums/vt-25928.html
Ok I tried that, and figured that when editing login.php, it would be as simple as changing my old domain within the code, too my new domain. But thats not the case, what am i supposed to change?
I have the same problem. When I try login in my forum with new damain name, the login page reapear without any error messege. They starts to show that my nick is login in "who is online" section, but I remain there as guest.
Wouldnt this simply be a case of you have the wrong adress configured? if you login from frihost and then go -> your admin panel -> configuration ->Domain Name
And alter that value it should work from your new domain name, there is a mod you can find if you want it logging in from both domains.
And alter that value it should work from your new domain name, there is a mod you can find if you want it logging in from both domains.
| Nyizsa wrote: |
| You must have FTP access to your site. Modify login.php via ftp, and there you go! (And use a relative URL if it's possible!) |
BS
First off, you need to make sure two things.
| Code: |
| UPDATE phpbb_config SET config_value = 'domain.net' WHERE config_name = 'server_name';
UPDATE phpbb_config SET config_value = '/forums/' WHERE config_name = 'script_path'; UPDATE phpbb_config SET config_value = 'domain.net' WHERE config_name = 'cookie_domain'; UPDATE phpbb_config SET config_value = '/forums/' WHERE config_name = 'cookie_path'; |
Make sure you edit /forums/ & domain.net.
Example - My forums are installed at abc.frih.net
I would change
"/forums/" to "/" (without the quotes)
"domain.net" to "abc.frih.net"
