wpaart, thank you for testing that out.
I just found out it was an error on my part. I recently updated the site for SSL but neglected to change the URL’s to reflect that. It seems I had to change the URL’s from HTTP to HTTPS. The URL’s still being HTTP did not redirect to the correct URL but upon changing them, everything works fine.
Sorry for wasting your time.
-
This reply was modified 8 years, 1 month ago by voidingnixx.
Thank you for that response, wpaart.
I have made the change in code which you suggested. Unfortunately, it still ignores all the variables in the header and only forwards to the URL of http://www.websitehere.com/dir/. If you have any other ideas I can try out, please let me know.