Help testign website accessibility

 
Post new topic   Reply to topic    Aprelium Forum Index -> Off Topic Discussions
View previous topic :: View next topic  
Author Message
RTAdams89
-


Joined: 06 Nov 2005
Posts: 102

PostPosted: Tue Jan 30, 2007 2:40 am    Post subject: Help testign website accessibility Reply with quote

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 View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Tue Jan 30, 2007 3:44 pm    Post subject: Re: Help testign website accessibility Reply with quote

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 View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Off Topic Discussions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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


Powered by phpBB phpBB Group