1
I’ve never developed a website before, I’ve always worked with systems, so I’m having problems with what should be the easiest part of development, the HTML pages.
I am in the middle phase of project development, which is a platform encompassed ERP, NF-e Emitter, CRM, App(web) and Site, and only after all this time I noticed that the site, followed the same molds of the other platforms Eatures, IE, it is 100% dynamic, This means that my site does not have any actual page.
An example of how one of the home elements is built (the element is a banner with Jumbotron):
namespace homeView;
class bgAboutJumbotron {
public static function bg_about_jumbotron($page) {
$html = '<section class="bg-about-'.$page.'">';
$html .= self::bg_about_jumbotron_container()['open'];
$html .= self::bg_about_jumbotron_container_jumbotron($page)['open'];
$html .= self::bg_about_jumbotron_container_jumbotron($page)['inner'];
$html .= self::bg_about_jumbotron_container_jumbotron($page)['close'];
$html .= self::bg_about_jumbotron_container()['close'];
$html .= '</section>';
return $html;
}
private static function bg_about_jumbotron_container() {
$html['open'] = '<div class="container">';
$html['close'] = '</div>';
return $html;
}
private static function bg_about_jumbotron_container_jumbotron($page) {
$html['open'] = '<div class="jumbotron text-center">';
$html['inner'] = '<h1><small>';
$html['inner'] .= \homeModel\bgAboutJumbotron::get_bg_about_jumbotron_text($page);
$html['inner'] .= '</small></h1>';
$html['close'] = '</div>';
return $html;
}
}
And all requests for the pages are made in AJAX, and the parameters passed by the POST method.
No text the site displays is written in HTML, the pure html of everything is just that (this is the index):
<!DOCTYPE html>
<?php
include 'vendor/autoload.php';
?>
<html lang="" class="wide wow-animation">
<head>
<?php
$head = new \siteModel\headModel;
echo $head->get_head(true);
$meta_tags = new \siteModel\local__metaTAGS;
echo $meta__tags->get_tags(true);
$favicon = new \siteModel\favicon;
echo $favicon->get_(true);
$CSS_packages = new \siteModel\local__cssPackages;
echo $CSS_packages->get_packages(true);
?>
</head>
<body data-spy="scroll" data-target="#myScrollspy" data-offset="15">
<div class="page text-center">
<header class="page-head undefined">
<div class="rd-navbar-wrap header-corporate">
<?php
$header = new indexView\header;
$header->rd_navbar('bg-dark')
?>
</div>
</header>
<main class="page-content">
<?php
$home = new indexView\home;
echo $home->__construct();
?>
</main>
<footer class="page-foot section-inset-4 bg-dark">
<?php
$footer = new indexView\footer;
echo $footer->__construct();
?>
</footer>
</div>
<?php
$packages = new \siteModel\local__jsPackages;
echo $packages->get_packages(true);
?>
</body>
</html>
The site also, has large-scale use of jQuery, but not in mounting, only in interactions, all information is stored in BD Mysql and uses the Composer.
Knowing that the site is almost done done this way, what I need to do/research to get a better performance in SEO ?
What is the way to do the sitemap for this ?
Or it is impossible for me to perform well in SEO in this way and I will have to redo everything ?
What search engine robots see is not their source code on the server, it’s the HTML obtained when your site is accessed. That’s how they index things. The fact that you are making life difficult by only mounting dynamic HTML does not help or disrupt your SEO performance, as long as the mounted HTML is well-formatted and within the quality standards of each search engine.
– Oralista de Sistemas
But me indicating only a URL in the sitemap to google brings some great harm ? In this case would be 2 Urls, one for each public application, the others should not go to the search engines.
– AnthraxisBR
Ideally, you specify in the sitemap all your urls that should appear in the organic search criteria.
– Rafael Andrade