Skip to main content
Level 4
Jan 27, 2023 12:56 AM UTC
Solved

Regarding redirect one domain to another domain

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Umesh_Thakur
Umesh_ThakurAccepted solution
Community Advisor
Jan 27, 2023 4:38 AM UTC

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

5 replies

Umesh_Thakur
Community Advisor
Umesh_ThakurCommunity AdvisorAccepted solution
Community Advisor
Jan 27, 2023 4:38 AM UTC

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

Translate
Oct 15, 2024 7:11 AM UTC

Ok , could you please give an example

 

Translate
Umesh_Thakur
Community Advisor
Community Advisor
Oct 16, 2024 6:14 AM UTC

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 

Translate
Siva_Sogalapalli
Community Advisor
Community Advisor
Jan 27, 2023 6:22 AM UTC

@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 

Translate
Nupur_Jain
Adobe Employee
Adobe Employee
Jan 28, 2023 8:40 AM UTC

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

Translate