Answer the question
In order to leave comments, you need to log in
When promoting a young site with which TIC to select sites for the purchase of links?
It is necessary to promote a 1-year-old site with TIC 10 in organic search results (mainly Yandex) for medium-frequency queries (about 300 items). It is planned to promote with high-quality links - in articles, blogs. Sites with what size TIC should be selected for placement?
Answer the question
In order to leave comments, you need to log in
Promotion is not buying links. But blog posts are the right strategy. Just keep an eye on the quality of the text, and not so much as anything but the main link.
Ideally, links only from thematic sites.
If you buy, then take eternal links, do not sit on the needle of temporary links. Yes, it is cheaper, but the quality is not the same, and in the long run it will be more expensive. But of course it all depends on the goals, budget, topics.
The main thing in the promotion is not to rush. Especially with young sites, gradually filling everything in parallel.
Not only the TIC should be guided, you can catch up with it, but the site will still be G
You create a crud of the component and its types (carousel, contacts, and what fantasy is enough for), make a selection from the database. Be sure to add type_id to the component. For each component you create a widget, with the corresponding view. Then you can either display conditions, or a switch in index.php.
I do like this:
foreach ($components as $component) {
switch ($component->type) {
case Component::TYPE_CAROUSEL:
echo Carousel::widget(['id' => $component->id]);
break;
case Component::TYPE_BLOCKS:
echo Blocks::widget(['id' => $component->id]);
break;
case Component::TYPE_MAP:
echo Map::widget(['id' => $component->id]);
break;
case Component::TYPE_CONTACT:
echo Contact::widget(['id' => $component->id]);
break;
}
}
This season it is fashionable to create constructors like this !
Seriously, can you explain what the problem is - in terms of devops, in the sense of how to create a database / reload nginx, etc., or in terms of what will be on the site and how the user will manage it? If the first - you need to understand your scale, how many sites, how many servers, database size, load. If the second - then you need to start explicitly with the technical specifications and design, otherwise you can only blame everything on the encoder)))
UPD . Since it is the deployment process that is of interest, let me share my thoughts, since I have little experience.
In general, the algorithm is rather stupid - first do everything by hand, and then write a script that does the same =)
First, decide whether all your sites will work on the same codebase (most likely yes, if not, this is closer to shared hosting). Next, decide if everyone needs their own personal docroot - it depends on how you store / distribute static. If the statics add up somewhere far away (like on s3) - you can get by with one for everyone, but IMHO it's still easier when everyone has their own.
You get a structure like this:
app
public
1
static
index.php
config.php
2
...
server {
server_name ~^(?<site_id>.+)\.hosting\.com$;
root /var/www/public/$site_id;
...
}
map $http_host $site_id {
site.com 1;
site2.com 2;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question