I want to set DNS redirect for site
Hi Team I want to set the redirection on xyz.com, all the pages of xyz.com will redirect to abc.com.
please let me know what and where do I need to write code. in vhost file.
Thank You in advance.
Hi Team I want to set the redirection on xyz.com, all the pages of xyz.com will redirect to abc.com.
please let me know what and where do I need to write code. in vhost file.
Thank You in advance.
Hi @dear_at
In order to set the redirection on xyz.com, you would need to configure a rule in the Apache web server. The rule should check for any request made to xyz.com and redirect it to abc.com.
You can achieve this by adding the following rule in your Apache configuration file:
<VirtualHost *:80> ServerName xyz.com Redirect 302 / http://abc.com/ </VirtualHost>
Also,
You can do this by creating a dispatcher rule in your dispatcher configuration.
You can use a redirect rule such as this one:
RedirectRule ^/ http://abc.com [R=301,L]
This rule will redirect all requests to xyz.com to abc.com.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.