Seo Forum

Coding & Programming => PHP Forum => Topic started by: FoxWildboar on 01-11-2012, 05:40:48

Title: php/html validation
Post by: FoxWildboar on 01-11-2012, 05:40:48
Hey there. I am working on the SEO for a site which I didn't build, and the site was built in php. for each page, there is a php file with all of the standard html code, and an html file that simply points to the php files. That is all fine and dandy, but my issue is w3c validation:

the php url's validate fine, but the html files don't (they don't have any character encoding, doctype, or markup)... just a meta tag which reads (for the index, for example):

<meta http-equiv="refresh" content="0 url=http://www.***.com/index.php" />

so,, in the interest of SEO, is this debilitating my site? Does the html file need to validate if they redirect to php? (I'm an SEO newb, heck i'm a front end design guy, just trying to learn )
Title: Re: php/html validation
Post by: Vinil on 02-05-2012, 22:00:14
they must have all the tags and markups indeed.It may effect at server side.
Title: Re: php/html validation
Post by: techendeavour on 02-20-2012, 22:09:27
Yes you need to validate the redirected html file otherwise it will show effect on your SEO.
Title: Re: php/html validation
Post by: Vinil on 02-20-2012, 23:19:28
html validation is must but it may effect the require design So be careful also need to say that always close the tags which are closing tags otherwise it enhances w3c validation errors.Developers generally forget this thing but you must not forget this for best SEO practices
Title: Re: php/html validation
Post by: avinashpathak11 on 03-16-2012, 03:45:34
I've tested all exploits I know on HTML Purifier and it did very well. It filters not only HTML, but also CSS and URLs.
Once you narrow elements and attributes to innocent ones, the pitfalls are in attribute content – javascript: pseudo-URLs (IE allows tab characters in protocol name - java&#09;script: still works) and CSS properties that trigger JS. bye the way , if you want to learn PHP then contact at training-sscsworld.com .

...

Thanks
Title: Re: php/html validation
Post by: nancyfromafrica on 03-05-2013, 06:06:51
<meta http-equiv="refresh" content="0 url=http://www.***.com/index.php" />

the code you have written above has unclosed quotes
Title: Re: php/html validation
Post by: keith.bowman on 10-29-2014, 06:20:12
I generally preferred PHP language as it offers different functionality like no need to pay behind its use of components and it has open source nature.