Forum Moderators: coopster

Message Too Old, No Replies

Apache AddType and W3C validator

Page not accessed for validation

         

Notawiz

3:11 pm on Oct 9, 2005 (gmt 0)

10+ Year Member



I hade some PHP pages, and the markup validated alright.

In order however to make them SE friendly, I was advised by an "expert" to give them the *.htm extension, and to add

AddType application/x-httpd-php .htm .html

to our .htaccess file.

But from then on, the W3C validator returns me a server error 500.

Any workaround for this, or should I live with the fact that validation of markup can not be checked any more?

Notawiz.

dragonthoughts

3:18 pm on Oct 9, 2005 (gmt 0)

10+ Year Member



There is a workaround.

Use a browser to "view source" for your displayed page, select all and then copy.

Then open a validator.w3.org page. There is the option towards the bottom to paste code into the validator.

w3.org orginally did this as a workaround for Windows XP service pack 2 not delivering real html files correctly to the validator.

Notawiz

3:30 pm on Oct 9, 2005 (gmt 0)

10+ Year Member



Hello dragonthoughts,

Well, I have to confess that I was after all able to validate my code. Indeed, I use FireFox and installed the Web Developer extension. Thus I was able to use the "validate local html", since that uses the post action to feed the markup to the W3C validator.

But I'm pretty sure that a random visitor will not go through such trouble.

So I was wondering if there is a workaround so that anyone could check the markup using W3C?

Cheers.
Notawiz