Arrow

http_referer not working | Peter's Login Redirect | Forum

Back to the login redirect plugin page

Please consider registering
guest

Log In

Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

   

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
http_referer not working
October 29, 2013
9:10 am
andy3000
New Member
Forum Posts: 2
Offline

I pasted this into the url redirect box

[variable]http_referer[/variable]

Now after I login I just get a blank page. Did I miss a step?

October 29, 2013
9:44 am
Peter
Admin
Forum Posts: 841
Offline

Your workflow might not have a referrer (if you're going directly to the login page). The first option I always suggest is to set your referrer in the redirect_to GET or POST variable when logging in -- that's more reliable.

October 30, 2013
10:47 am
andy3000
New Member
Forum Posts: 2
Offline

Thanks. I tried checking that box but the same thing happens. (wp-login.php stays in browser nav bar but the page goes blank) . I also set some of the redirects to a particular page and changed the template to call this in the header:

<META HTTP-EQUIV="Refresh"
CONTENT="0; URL="javascript:window.location.reload(history.go(-2));">

Trying to go back to one before the login page and refresh the page.Unfortunately this code just refreshes the first page in an endless loop.

November 25, 2013
2:24 am
treadnought
New Member
Forum Posts: 1
Offline

If I set URL to [variable]http_referer[/variable] it redirects to the profile page after logging in, not the page I was just on. How do you set your referrer in the redirect_to GET or POST variable when logging in?

November 25, 2013
8:48 am
Peter
Admin
Forum Posts: 841
Offline

treadnought said

If I set URL to [variable]http_referer[/variable] it redirects to the profile page after logging in, not the page I was just on. How do you set your referrer in the redirect_to GET or POST variable when logging in?

Hi,

You can see this page for an explanation of setting the "redirect_to" variable: http://wordpress.stackexchange.com/questions/16004/redirect-user-to-original-url-after-login

Good luck!