If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Hybrid View

Develop SEO friendly Website in PHP

Recently most of the client wants to make their site seo friendly for getting good placement of their sites. I would like to know which framework is helpful to me in this. As i know codeignitor help me here, but i want more opinion for other web developer.

That said, one's search engine ranking depends heavily on getting the appropriate keywords into the <title> tag of your html without any pollution from the framework. For example, "Free Beer" is a better title than "My Annoying Framework :: Free Beer".

@sneakyimp: I believe the point trying to be made was that the choice of frameworks/backends itself is 100% irrelevant; instead, it's only the output which matters in the end.

I do agree that the backend is not what makes a page get a good search ranking, but I disagree that frameworks are 100% irrelevant as some have built-in and easy-to-use features and/or documentation which make SEO easier and others have none whatsoever. For example, here is an article from zend describing how to get seo-friendly urls using zend framework. It's a tiny bit involved, but better than nothing. Selection of a particular framework doesn't guarantee awesome SEO features, but such a choice can make things easier or harder.

Or maybe I'm using too broad an interpretation of the term framework to include Joomla or Wordpress which are very easy to configure with seo-friendly features.

Frameworks don't actually output a site, you develop code based on the framework to output what you like.

CMS, or Content-Management Systems, provide a fully functiona webste, that is customizable to your needs.

When you install a framework on its own you get nothing, when you install a CMS on its own you get a fully functional website.

Sadly, nobody codes for anyone on this forum. People taste your dishes and tell you what is missing, but they don't cook for you. ~anoopmailI'd rather be a comma, then a full stop.User Authentication in PHP with MySQLi - Don't forget to mark threads resolved - MySQL(i) warning

If using CodeIgniter, most of the SEO issues will be handled in your views: how you structure them, the markup used, etc. You can use helper functions to control things like titles and keywords that show up in the head section, and so forth. As far as the URL issues, careful selection of controller names and method names can help, along with the optional .htaccess configuration that allows you to not include the "index.php" in the URL.

E.g., if you call the controller for your web store "store" instead of "controller" and have a method in it called "search" that accepts a couple arguments (a top-level category and a sub-category to search), you could have a URL that looks like "http://example.com/store/search/mens/shirts", which is much more friendly than "http://example.com/index.php?action=search&category_id=1&subcategory_id=32".

The whole SEO-friendly URLs is a bit of a red herring a lot of the time. I know some SEO 'experts' see that almost as the holy grail of SEO, but in truth it's only a small part of the optimisation process. Think about it, how often do you search for the answer to some complex question to have Google give you a bunch of results with links to forums like this one, which does not use SEO-friendly URLs?

At the end of the day, there are far more important factors, and the framework has no bearing on them.

The whole SEO-friendly URLs is a bit of a red herring a lot of the time. I know some SEO 'experts' see that almost as the holy grail of SEO, but in truth it's only a small part of the optimisation process. Think about it, how often do you search for the answer to some complex question to have Google give you a bunch of results with links to forums like this one, which does not use SEO-friendly URLs?

At the end of the day, there are far more important factors, and the framework has no bearing on them.

I disagree on both points. I altered the urls on my website to be more expressive of their content (i.e., they matched the titles, minus puncutation) and my site went from being perhaps 50 or 100 in google rankings to being in the top 3 results. There are other factors, of course, but I think these urls really do matter a lot. Others may disagree, but this has been my experience.

As for the framework -- It is also my opinion that it does matter. Although Joomla and Wordpress are actually CMSes, they do have a lot of underlying features in the domain of frameworks: database abstraction, authentication, etc. That they have additional features not in the realm of framework means perhaps that they are more than <i>just</i> a framework. Perhaps we need a venn diagram? And Zend framework -- obviously a framework -- has features that assist with using SEO-friendly urls. The urls that your web server responds to are only half a matter of your html output. They are also half in the realm of your site's architecture and API with the outside world.

EDIT: I meant to contract frameworks that assist with SEO either via code structure, sample .htaccess files, or documentation with the one I had to deal with in my first paragraph. This old beast of a site had hundreds of thousands of data-driven urls and the framework/cms had no features whatsoever to assist with seo-urls. Altering its structure to get seo-friendly urls was a 6-week-long process, and quite arduous at that. Had we started with Zend framework (or used a CMS like Joomla or Wordpress) we would have avoided that entirely.

I am not saying that SEO-friendly URLs help, just that they're often not as big a factor as some people think. I've not had the performance boost you've experienced by switching to using them, but I have had excellent boosts by just organising my content better and using correct headings and links, etc.