Meta tags in PH?

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
boštjan
-


Joined: 03 Apr 2008
Posts: 23

PostPosted: Mon May 12, 2008 6:49 am    Post subject: Meta tags in PH? Reply with quote

Hello,

Well, this problem that I have has nothing to do with my Abyss X2, but PHP code on my site; but I hope that someone will help.
The thing is, that I used php with Smarty framework, included metatags, wrote robots.txt, verified with Google, but when I type the name of my site in search bar, Google does not find anything. Here is the index.tpl header code, please, take a look at it and help!
Have a nice day!

Boštjan


<?xml version="1.0" encoding="{lang mkey='ENCODING'}"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
{strip}
<head>
{if $title != '' }
<title>{$title} </title>
{elseif $config.site_title ne '' }
<title>{$config.site_title|stripslashes}</title>
{else}
<title>{lang mkey='title'}</title>
{/if}
<meta http-equiv="Content-Type" content="text/html; charset={lang mkey='ENCODING'}" />
<meta name="keywords" content="{$config.meta_keywords}" />
<meta name="description" content="{$config.meta_description}" />

<script type="text/javascript">
/* <![CDATA[ */
var loadingTag = "{lang mkey='loading'}";
var modeRewrite = "{$config.enable_mod_rewrite}";
var docRoot = "{$smarty.const.DOC_ROOT}";
var alphanumeric_chars = "{lang mkey='alphanumeric'}";
var alphanum_chars = "{lang mkey='alphanum'}";
var text_chars = "{lang mkey='text'}";
var full_chars = "{lang mkey='full_chars'}";

{if $config.use_popups == 'N'}
var use_popups = false;
{else}
var use_popups = true;
{/if}
{if $config.use_profilepopups == 'N'}
var use_profilepopups = false;
{else}
var use_profilepopups = true;
{/if}
/* ]]> */
</script>

<link href="{$css_path}default.css" rel="stylesheet" type="text/css" />
{$addtional_css}
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Thu May 15, 2008 4:40 pm    Post subject: Re: Meta tags in PH? Reply with quote

boštjan,

Things are more complex than that: adding META tags in your pages does not mean that Google will immediately index it. It may take months for its spider to do so.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
fiasco
-


Joined: 12 Aug 2008
Posts: 8

PostPosted: Thu Sep 04, 2008 6:10 am    Post subject: Reply with quote

You can write whatever meta elements you like with php, just like you would write out any other HTML element(s).
_________________
web design company
free templates
Back to top View user's profile Send private message Visit poster's website
Toasty
-


Joined: 21 Feb 2008
Posts: 298
Location: Chicago, IL

PostPosted: Thu Sep 04, 2008 2:34 pm    Post subject: Reply with quote

Tutorial from a guy I know

I used this on all of my sites, works pretty good if you follow the directions.
_________________
Audit the secure configuration of your server headers!
Back to top View user's profile Send private message Visit poster's website
herbalz
-


Joined: 28 Oct 2008
Posts: 3

PostPosted: Tue Oct 28, 2008 7:33 pm    Post subject: Reply with quote

Hi all,
I'm using php navigation for my new site, with each page having a css layer with the php include function to bring in other pages when the links are clicked, in the format of: index.php?page=

But, I'm just wondering if I need meta tag keywords and descriptions on all the other pages of my site?
_________________
Health Article Forum | Natural Herbal Remedy
Back to top View user's profile Send private message Send e-mail Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Thu Oct 30, 2008 1:54 pm    Post subject: Reply with quote

herbalz wrote:

But, I'm just wondering if I need meta tag keywords and descriptions on all the other pages of my site?


They are not required and your PHP generated page will display fine. But adding them may make search engines happy and it may help navigation inside your pages using some browsers.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group