Changing the reidrects to relative redirecting based on a url in a header file rather than hardcoding them in