Redirect to base url not website


In my Applications Details I have set my website as
and my callback url

when I go to I get to the authorisation page for twitter, but when I get a redirect I go back to

Where am I going wrong? Why is twitter sending my request back to

Also, can I save the oauth_token and pass that to the API? = my localhost VM


What are you setting as your oauth_callback during the oauth/request_token step? (You should both have a value stored in application details as well as explicitly declaring one on each request to oauth/request_token)


Thank you, you were correct! I had $_SERVER[‘HTTP_HOST’] set up instead of the full URL.