user4136487
user4136487

Reputation:

Single header for multiple web pages

I want to use one header for all pages in my project directory for website. But I am little bit confused. If I kept single header and import it in all web pages then will it affect SEO? can crawler crawl those header for each page? I want the way which does not affect SEO of my website.

Upvotes: 0

Views: 177

Answers (2)

Rohìt Jíndal
Rohìt Jíndal

Reputation: 27192

Try like this :

<html lang="en">
<head>
<title></title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="description" content="">
<?php include 'header.php'; ?>

in header.php use static content such as css,javascript etc.

header.php

<link rel="icon" href="../../favicon.ico">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/responsive.css">
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600,600italic,700,800,800italic,700italic' rel='stylesheet' type='text/css'>
</head>

I think, your problem is solved by doing this

Upvotes: 1

Brendan
Brendan

Reputation: 2935

Using a single header for your entire website will not hurt the SEO of your website - upwards of 90% of websites do it.

Upvotes: 1

Related Questions