Tell me more ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Can we do SEO for PHP websites? Is it possible to add meta tags and perform SEo on the site

share|improve this question

closed as not a real question by bybe, danlefree Mar 6 at 11:45

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.

2 Answers

Yes.

A PHP website or an ASP.net website will render HTML content. And meta tags are inside the HTML content.

share|improve this answer

Just as @jok has said "PHP and ASP" do render HTML Content. As an example please look at the following:

On an index.php file You would have something like this;

<?php
$title = "Welcome to my our site";

$description_words = "Official dealer of wooden garden furniture."; 
$keywords = "Official, dealer, of, wooden, garden, furniture.";

require_once 'includes/header.php';

?>

And your header.php you would look something like this

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title><?php echo $title  ;?></title>
<meta name="keywords" content="<?php echo $keywords ;?>" />
<meta name="description" content="<?php echo $description_words ;?>"> 
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.