Default URL

Hey RTcommunity, I’ve searched for an answer to this and can’t find anything. When I initially setup my Wordpress site, I used and in Wordpress, I have it set to the and everything works fine, displays fine.

I have an instagram script that keeps trying to pull from which is causing a redirect loop.

<?php if(!empty($_GET['redirect_uri']) && !empty($_GET['code'])) { $glue = strstr($_GET['redirect_uri'], '?') ? '&' : '?'; header('Location: '.($_GET['redirect_uri'].$glue.'code='.$_GET['code'])); } How can I get this script to pull my site with the www attached? Not sure where I can change that site Wordpress is already working fine with the www. setting. Somewhere in the nginx config? Here is the URL it tries to pull by default which ends up just logging me out of admin. Thanks.


There are two things to mention -

  1. You have two redirect_uri in the url
  2. Please change the script to accept the redirect_uri parameter instead of redirecturi


use $GET['redirect_uri'] instead of $GET['redirecturi']

Hope, this will help you.