View previous topic :: View next topic |
Author |
Message |
RTAdams89 -
Joined: 06 Nov 2005 Posts: 102
|
Posted: Tue Jan 30, 2007 2:40 am Post subject: Help testign website accessibility |
|
|
Hello. I was recently on vacation and noticed an issue with my website. I have several different "sites" in various folders all served from one computer. I have a dyndns account which is linked to the root of my server (no website here as all the sites are at least one folder deep from the root folder). I have a index.html file there, which using php and
Code: | header( "HTTP/1.1 301 Moved Permanently" );
header( "Status: 301 Moved Permanently" );
header( "Location: personal/index.html" ); |
redirects anyone who gets to the root to the sub directory "personal" where one of my sites is.
So if someone goes to http://ryanadams.blogsite.org they should end up at the index,html in the "personal folder". This works when I test it, but when I was on the other side of the country, going to http://ryanadams.blogsite.org would result in a 404 (just a generic, not the custom one set up on my server fyi). However, going to http://ryanadams.blogsite.org/personal/ would work. Why was it not working there? |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Tue Jan 30, 2007 3:44 pm Post subject: Re: Help testign website accessibility |
|
|
RTAdams89,
First of all, there are redundant headers in your code. You could simplify it as follows:
Code: | header( "HTTP/1.1 301 Moved Permanently" );
header( "Location: personal/index.html" ); |
Second, the link works fine for us. Anyway, we strongly recommend that you change personal/index.html with an absolute path, i.e. /personal/index.html . _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|