-1

Hello guys i am having the domain www.myawesomedomain.com

which i would like to redirect to www.myotherdomain.co.uk/modules-plugins/

I have tried this record:

* WebForward REDIRECT www.myotherdomain.co.uk/modules-plugins/

But it does not seem to work.

Is this possible via DNS Record? If yes how?

Is this possible via URLRewriteFilter?

BRG
  • 101
  • 4

3 Answers3

1

Is this possible via DNS Record? If yes how?

No, this is not possible via DNS record.

Is this possible via URLRewriteFilter?

You did not state which web server you are using, anyway yes, your web server is the right place to look for. You will want to issue a HTTP 301 status code to permanently redirect all clients from the first URL to the other.

S19N
  • 1,693
  • 1
  • 17
  • 28
  • I am using Apache tomcat and i can setup a rule for this. But my question is just like this i can redirect 1 domain to another? By this logic i can also redirect other domains that i do not possess to my domain – BRG Oct 19 '16 at 12:11
  • It seems you need to check what DNS is and how it works. – S19N Oct 20 '16 at 16:20
1

You can use the service redirect.name. Just set a CNAME record and a TXT record. Without a third party service it is not possible with DNS only.

DNS Settings:

 www           IN  CNAME  alias.redirect.name
_redirect.www  IN  TXT    "Redirects to www.myotherdomain.co.uk/modules-plugins/"

If you use a 3rd party service be aware of the information disclosure to this service.

Cryck
  • 111
  • 5
  • i do not understand the CNAME record exactly. Could you elaborate? – BRG Oct 19 '16 at 12:17
  • You basically set your CNAME record to redirect to a 3rd party site (alias.redirect.name in this case). This 3rd party site then evaluates the TXT record and redirects you to the given URL. – Cryck Oct 19 '16 at 12:33
  • It may or may not be a concern that while functional, this technique discloses a lot of information about the website visitors to the third party service. – S19N Oct 20 '16 at 16:18
  • That is right that would be a negative point about it. I will make it more clear. – Cryck Oct 20 '16 at 16:22
0

Make an index.html file in your old domain's root folder with the following content :

<meta HTTP-EQUIV="REFRESH" content="0; url=http://www.myotherdomain.co.uk/modules-plugins/">
Str82DHeaD
  • 582
  • 4
  • 7
  • 1
    This is tecnique was *deprecated* back in 2000: https://www.w3.org/TR/WCAG10-HTML-TECHS/#meta-element . – S19N Oct 20 '16 at 16:16