S
S
sashakirichenko2021-09-25 10:27:38
Godaddy
sashakirichenko, 2021-09-25 10:27:38

Why is Godaddy's 301 redirect not working?

I bought a domain on Godaddy, set up an SSL certificate, connected e-panel hosting and enabled a 301 redirect to another address, but for some reason it doesn’t work. I don’t understand where I made a mistake, because I did everything according to the book! Here is the domain kraudmarketing.com Help, what did I do wrong, why is the secure connection not working?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Taran, 2021-09-26
@shambler81

1.if you bought a domain and want to merge it with another, it does not need hosting, delegate it to the same server where the main domain is.
2.Create the appropriate dns zone
3.In the settings of the web panel of the main domain, specify the "mirror"
As a rule, it is somewhere in the settings where www is added, separated
by a space, specify your new domain.
As a result, the apache or nginx config will have something like.

server {
        listen *:80;
        server_name klondike-studio.ks03.ru www.klondike-studio.ks03.ru   ;
        root /var/www/klondike-studio.ks03.ru/web;

and the site will have several domains at once.
And it will be convenient to configure the redirector not on 10 sites
, but in one config.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^Godaddy \.com
RewriteRule ^(.*)$ http://kraudmarketing.com/$1 [R=301,L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question