What is better; PHP or ASP.NET?

What is better; PHP or ASP.NET?

By Sadie on March 30, 2010

php vs asp

Is PHP better for SEO than ASP.NET?

Many people ask us what is a better programming language to use for SEO, PHP or ASP.NET, popular opinion is that for an SEO friendly website you should use PHP but is this correct?

Search engines such as Google, Yahoo and Bing rely a lot on page content and the relevance of the sites content to determine how your site should appear for certain keywords. By emphasising certain keywords in header tags like H1, H2’s and H3’s these keywords will stand out like a headline in a newspaper.



ASP and ASP.NET are the programming languages usually used on Microsoft servers and are server-side scripting languages, PHP is also a server-side scripting language but more often used with Linux servers. Traditionally Linux servers and PHP have been associated with being more Search Engine friendly. This is mostly due to the fact that 301 rewrites for SEO friendly URL’s are quicker to do on a Linux server, also a lot of PHP developers are involved in open source SEO platforms such as WordPress. Some of the most SEO friendly Open source platforms such as WordPress and Magento are built using PHP and are not compatible with Microsoft servers.

When a search engine is crawling your website they will only see the outputted html and not the scripts that output the html (unless specifically stated by the (runat=”client”) JavaScript only), therefore there is no reason for the search engines to prefer PHP to ASP or ASP.NET. Search engines prefer SEO friendly URL’s (although even Google admits they will work it out so don’t mess around with unfriendly URL’s if there is a chance you may break it), typically older ASP and .NET Content Management Systems output a stream of characters rather than a user and SEO friendly URL. Newer CMS websites built in ASP and .NET can be built to output friendlier URL’s and as long as they are built to consider accessibility and control over Header tags, Title tags etc there is no reason for search engines have difficulties crawling.

From sites I have worked on I see no reason not to use ASP and ASP.NET when building a website, the only reason we tend to prefer PHP is it is cheaper to develop in as a lot of software is already available in open source that has everything needed therefore the development time is reduced considerably.

If you are interested in SEO friendly content management systems built in either PHP or ASP.NET then contact us. We have developers around the UK who can build high quality websites at freelance prices, that combined with the expertise of our Manchester SEO consultants can give you a website and SEO campaign that will work for your business needs.