Re: [WSG] 404 Redirectationite

2006-04-13 Thread Randall Potter



Al Kendall wrote:

My dilemma is that on my last rebuild of my site I
changed the .php files.   This has created problems with links to my 
site from other peoples sites as they have added the /index.html 
extension to their links.   What is the best/correct way of redirecting 
them to my /index.php files?


In my opinion; the appropriate thing to do is throw a 300 level moved 
permanently error.  Now whether you redirect immediately or inform your 
users as to the nature of the redirection is a matter of usability 
preference.  I think we're moving off the subject of web standards (or, 
perhaps not as appropriate http codes are part of a standard).  If you 
would like to discuss it, contact me off list.


--R

**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
**



Re: [WSG] 404 Redirectationite

2006-04-12 Thread Anders Nawroth



Patrick H. Lauke skrev:

Joseph Bernhardt wrote:
I run an apache server and utilize the .htaccess file to run a php 
script on a 404 error.  This php script grabs the contents of the 
current uri to display information.  (example: 
www.joughslife.com/Rockport.html) My question is, will this have any 
effect as far as usability? 


One question: why not use mod_rewrite instead? It's cleaner from a 
conceptual point of view, and won't send out an http status of 404. 
Using the error document functionality for this seems a bit of a 
perversion of its intended use...
I thought this was the intended use of the ErrorDocument directive?! 
(what else could it be?)

And sending a 404 for a page that doesn't exist is a good thing, in my view.

I use mod_rewrite and Php for all handling of URIs, but send a 404 when 
a page is not found. You can send a normal web page with a 404 http 
status, just be careful to make the resulting HTML long enough, 
otherwise IE will display it's own error message instead. I can't 
remember the number of bytes right now ...


/AndersN

**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
**



Re: [WSG] 404 Redirectationite

2006-04-12 Thread Joseph Bernhardt

Anders,

Obviously you did not read the initial post :).  That's alright.  I am 
using a php script to display data depending on the current page.  
Example: www.joughslife.com/Rockport.html displays the page that is 
titled Rockport while www.joughslife.com/otherstuff.html would display 
the page titled otherstuff.  So, these aren't supposed to be 404's.  I 
was simply using this technique to display the pages.


Anders Nawroth wrote:


Lindsay Evans skrev:
To stop the validator/robots/etc. seeing it as a 404 error, you need 
to send a 200 OK HTTP status code, you can do that in PHP using this 
line of code:


header(HTTP/1.1 200 OK);

Why would you want to see 404 pages in search results?

If you need to validate the (X)HTML, you can upload it to the 
validator in this case.

Shouldn't be any need to validate your error pages too often!

/AndersN
**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
**






**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
**



Re: [WSG] 404 Redirectationite

2006-04-12 Thread Anders Nawroth

OK, now I get it :-)

/Anders

Joseph Bernhardt skrev:

Anders,

Obviously you did not read the initial post :).  That's alright.  I am 
using a php script to display data depending on the current page.  
Example: www.joughslife.com/Rockport.html displays the page that is 
titled Rockport while www.joughslife.com/otherstuff.html would 
display the page titled otherstuff.  So, these aren't supposed to be 
404's.  I was simply using this technique to display the pages.


Anders Nawroth wrote:


Lindsay Evans skrev:
To stop the validator/robots/etc. seeing it as a 404 error, you need 
to send a 200 OK HTTP status code, you can do that in PHP using this 
line of code:


header(HTTP/1.1 200 OK);

Why would you want to see 404 pages in search results?

If you need to validate the (X)HTML, you can upload it to the 
validator in this case.

Shouldn't be any need to validate your error pages too often!

/AndersN
**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
**






**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
**





**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
**



[WSG] 404 Redirectationite

2006-04-11 Thread Joseph Bernhardt
I run an apache server and utilize the .htaccess file to run a php 
script on a 404 error.  This php script grabs the contents of the 
current uri to display information.  (example: 
www.joughslife.com/Rockport.html) My question is, will this have any 
effect as far as usability?  Also, the w3c validator was unable to 
recognize the page as anything other than 404;  will other spiders/bots 
be able to recognize content?  Thank you, as always!


Jough

**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
**