njdubois Posted March 1, 2015 Share Posted March 1, 2015 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 Quote Link to comment https://forums.phpfreaks.com/topic/294987-seo-and-dynamic-website-question/ Share on other sites More sharing options...
njdubois Posted March 1, 2015 Author Share Posted March 1, 2015 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! Quote Link to comment https://forums.phpfreaks.com/topic/294987-seo-and-dynamic-website-question/#findComment-1507154 Share on other sites More sharing options...
QuickOldCar Posted April 6, 2015 Share Posted April 6, 2015 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. Quote Link to comment https://forums.phpfreaks.com/topic/294987-seo-and-dynamic-website-question/#findComment-1508431 Share on other sites More sharing options...
gizmola Posted April 6, 2015 Share Posted April 6, 2015 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. Quote Link to comment https://forums.phpfreaks.com/topic/294987-seo-and-dynamic-website-question/#findComment-1508432 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.