Link problem

Hello!

The problem, then, is what. There is a website, stavropolie.ru. When you query in a search engine, for example, “building materials from straw Stavropol”, you get such a link “http://vwstavropol.s...p?notion_id=781“, but it should be – “http://stavropolie.ru/notion.php?notion_id=781“, “building materials from straw Stavropol”, the following link is obtained “http://klimatkontrol.stavropolie.ru/notion.php?notion_id=781“, but again it should be like this – “http://stavropolie.ru/notion.php?notion_id=781“.

Tell me, please, what could be the problem?


Answer 1, authority 100%

well, you have it set up like this, make a redirect to subdomains to the desired domain and that’s it.

.htaccess

RewriteEngine On
RewriteCond %{HTTP_HOST} ^http://vwstavropol.stavropolie.ru$ [NC]
RewriteRule ^(.*)$ http://stavropolie.ru/$1 [R=301,L]

well, something like this, add something and it will work 🙂
redirect .htaccess