Expand my Community achievements bar.

SOLVED

Regarding redirect one domain to another domain

Avatar

Level 3

Hi All,

 

Got some requirement my one of the site to new domain redirect means like   old domain to new domain redirect.

 

It would be great help if someone share the articles / experience - what all files are need to modify .

 

Thanks in advance.

 

-- Nani

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

I think you can handle it thru webserver level. You need to just have a rewrite rule for one domain to other.

View solution in original post

5 Replies

Avatar

Correct answer by
Community Advisor

I think you can handle it thru webserver level. You need to just have a rewrite rule for one domain to other.

Avatar

Community Advisor

Hi @GowthamKu ,
see below examples:

 

RewriteEngine on
RewriteRule ^myfolder/$ http://other.example.com/anotherfolder/ [P]

https://httpd.apache.org/docs/2.4/rewrite/remapping.html

 

hope this helps

Umesh Thakur 

Avatar

Community Advisor

@Apmag If it is for on-premise AEM, acs commons provides an options to maintain the redirections. please check below. 

https://adobe-consulting-services.github.io/acs-aem-commons/features/redirect-map-manager/index.html 

Avatar

Community Advisor

Hi @Apmag 

 

You should make such change in Apache Server files where you make changes to redirect all your pages to new domain using apache rewrite rules.

 

I have got some good articles that might help. 

https://serverfault.com/questions/344614/simple-apache2-redirect-from-one-domain-to-another

https://ubiq.co/tech-blog/how-to-redirect-all-pages-to-new-domain/

 

Hope it helps!

Thanks,

Nupur