Jump to content

seo and dynamic website question.


njdubois

Recommended Posts

A rough idea of the code:

<?php
// php code to pull a blog post from the database using an seo friendly url;
// http://www.myblogsite.com/Blog-post/10/
?>

<html>
<head>
	<title><?php echo $title; ?></title>
</head>

<body>
	<!-- seo appropriate/friendly content being inserted via php  -->
</body>
</html>
 
My question is how SEO friendly would a dynamic page that uses php to insert data be? If the tutorials I read are correct, I can use php to insert the title and the Web crawlers would index it?

 

Or am I missing something? Cause that doesn't make sense to me.

 

Thanks,

Nick

Link to post
Share on other sites

An additional question I have. What are issues regarding security, or any other pitfalls when savings blog posts as their own html file on the Web host?

 

Is this a safe practice?

 

Thanks!

Link to post
Share on other sites
  • 1 month later...

 

A rough idea of the code:

Insert any seo into the head section

Any meta or something like opengraph

You can view the page source any youtube video and see an example

<meta property="og:*

 

 

My question is how SEO friendly would a dynamic page that uses php to insert data be?

 

Query your data first before any output so you can populate the opengraph content while also using the same data for displaying to visitors.

 

 

If the tutorials I read are correct, I can use php to insert the title and the Web crawlers would index it?

 

Search engines will use and value that information more than any other.

It won't make crawlers visit you more, instead they have a way to get the information easier once they visit.

 

 

What are issues regarding security, or any other pitfalls when savings blog posts as their own html file on the Web host?

Is this a safe practice?

 

Do you mean doing html caching?

By caching dynamic websites to html for x amount of time will decrease server loads, especially heavy traffic situations.

 

Is many cases you would not want to cache logged in users.

 

Only html gets rendered to the browser with the addition of javascript and css scripts.

It's as safe as reading any other web page.

Link to post
Share on other sites

Search engines crawl around using url's.  

 

You should read the Guidelines page thoroughly:  https://support.google.com/webmasters/answer/35769?hl=en

 

Google really doesn't know how your url is served up theoretically.  With that said, url's with parameters tend not to be weighted as highly, or the parameters will be flat out disregarded, making multiple pages seem like one.  For example:

 

 

www.yoursite.com/products.php?id=1

 

Will not be valued as highly as:

 

www.yoursite.com/products/my-fancy-item

 

OR at very least:

 

www.yoursite.com/products/1

 

So you can hide the fact that you are using parameters and php scripts behind the scenes, by using url rewriting, as in apache mod_rewrite or nginx rewrite rules.

Link to post
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.