Why Does My Website Redirect me to my localhost?

Posted by Noah Brainey on Super User See other posts from Super User or by Noah Brainey
Published on 2010-12-26T01:44:07Z Indexed on 2010/12/26 1:55 UTC
Read the original article Hit count: 620

Filed under:

Alight, my website has some issues that I'm not sure what's causing them. Visit this page http://online-file-sharing.net/tos.html and click one of the bottom footer links... it redirects you to your localhost in the address bar. I have no idea why it does this. I'm hosting this website on my own server, which is this computer, and using Xampp. If this information helps. Anyways any help would be greatly appreciated! I'm also using DYNDNS as my nameservers.

© Super User or respective owner

Why Does My Website Redirect me to my localhost?

Posted by Noah Brainey on Stack Overflow See other posts from Stack Overflow or by Noah Brainey
Published on 2010-12-26T02:26:09Z Indexed on 2010/12/26 2:54 UTC
Read the original article Hit count: 619

Filed under:
|

Alright, my website has some issues that I'm not sure what's causing them. Visit this page http://online-file-sharing.net/tos.html and click one of the bottom footer links... it redirects you to your localhost in the address bar. I have no idea why it does this. I'm hosting this website on my own server, which is this computer, and using Xampp. If this information helps. Anyways any help would be greatly appreciated! I'm also using DYNDNS as my nameservers.

I've already ask this question on superuser and webapps QnA sites neither could help. They said to come here. Another thing to note is that this website runs on one script and not multiple scripts (upload.cgi). However there are three files that aren't dynamic and aren't part of the upload.cgi file... these are about.html, browse.html and tos.html.

Another thing to note is that my homepage which is upload.cgi can only be accessed by manually typing in online-file-sharing.net/cgi-bin/upload.cgi (which isn't it's real location but it seems to recognize it this way... but redirects me to my localhost).

.htaccess file code:

DirectoryIndex upload.cgi 

My upload.cgi path code:

my $version = "4.14";
$ENV{PATH} = '/bin:/usr/bin';
delete @ENV{'IFS', 'CDPATH', 'ENV', 'BASH_ENV'};
($ENV{DOCUMENT_ROOT}) = ($ENV{DOCUMENT_ROOT} =~ /(.*)/); # untaint.
#$ENV{SCRIPT_NAME} = '/cgi-bin/upload.cgi';
use lib './perlmodules';
#use Time::HiRes 'gettimeofday';
#my $hires_start = gettimeofday();
my (%PREF,%TEXT) = ();

The script I'm using is FileChucker.

I hope this information is enough to find an answer... if not please let me know and I'll post as much information as you need!

© Stack Overflow or respective owner

Related posts about website