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 comment
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 comment
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 comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.