apache - What is the proper way to re-direct? -


If I have two domain names:

altcognito.com

and Say I have got another domain:

alt-cognito.com

What is the "best" redirect (I am using sustainable ...?) I Want to suggest Altcognito.com is the "right" website.

(Naturally, these are just examples)

If you want to say You should always go to Foo instead of the bar, "You want 301 redirects (which you do with your front server).

A 302 (temporary) redirect should be used in cases where you can not serve any page, but hopefully it will come back later.

A client-side (Meta refresh or JavaScript) redirect should be avoided whenever possible.

Edit per comment: Here is a link to configure permanent (or temporary) Redirects on Apache Docs:


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -