Page 1 of 1

problem with redirect

Posted: Tue Mar 11, 2008 5:37 pm
by dalton565
Hey guys, just moved my site from local to webserver and i have the following problem

My logout link does 2 things
1. Log user out of forum phpbb
2. Log user out of main site

This is achieved by loading one url then applying a redirect, however now that i have moved this from my local machine to the online webserver, when i click logout it is pointing the user to localhost

link to my site - http://www.hookedonpike.co.uk/index.php
test details - username - test1 password - qwerty

the code for my logout link looks like this

Code: Select all

$appendLogout = append_sid($phpbb_root_path . 'login.php?logout=true&redirect=http://www.hookedonpike.co.uk/logout.php&sid=' . $userdata['session_id']) ;
Anyone know an easy way to fix, wrecking my head as im new to php

Re: problem with redirect

Posted: Tue Mar 11, 2008 6:50 pm
by John Cartwright
and your question is?

Re: problem with redirect

Posted: Wed Mar 12, 2008 5:57 am
by dalton565
is there any way i change the above code so it wont redirect me to localhost

Re: problem with redirect

Posted: Wed Mar 12, 2008 6:31 am
by anto91
dalton565 wrote:is there any way i change the above code so it wont redirect me to localhost
Did you reinstall the phpbb system, because im guessing that its redirect to document root witch is LOCALHOST since that is what you used when you installed it on your local server.

Re: problem with redirect

Posted: Wed Mar 12, 2008 8:05 am
by Zoxive
What is your code doing with $_GET['redirect'] because in your post you have the full url, but on your website you do not.