Mobile app version of vmapp.org
Login or Join
Holmes151

: Is "Redirecting via DNS" a good practice for positioning a website? In order to position a website project I'm planning on getting 3 domain names (example.com, example.org and example.net). Whenever

@Holmes151

Posted in: #Dns #Redirects #Seo

In order to position a website project I'm planning on getting 3 domain names (example.com, example.org and example.net).

Whenever a user goes to "example.org" or "example.net" he/she would be redirected to "example.com".

All redirection methods I have used are via JavaScript or PHP and not long ago I found out it can be via DNS settings with the domain registrar company.

Now my question:

Is it a good SEO practice redirecting via DNS? (Would not it be better to have some content on these two websites (".org" and ".net"), like a link pointing to "example.com", and then redirect using JavaScript or PHP?)

In general (considering other topics like security, performance, etc), is it a good practice redirecting via DNS?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Holmes151

1 Comments

Sorted by latest first Latest Oldest Best

 

@Cugini213

There is no way to redirect via DNS, I detailed the reason in this answer.

What your provider is probably offering you, is a proprietary quick solution to configure a redirect that. Internally, that configuration is converted into a DNS record pointing to a server configured in order to handle the redirect either with a server-side configuration or a script created in a server-side programming language such as PHP or Ruby.

All these server-side solutions (server config, programming language, etc) are totally equivalent as long as they result in a HTTP redirection header set in the HTTP response.

This is the standard way of redirecting, thus it's perfectly fine. In your case, you only need to check whether the response is a 301 response (I don't see the 302 appropriate in your case) and the HTTP headers contain the Location header set to your target domain.

You can check it using any HTTP client, such as hurl.it or $ curl.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme