Regarding redirect one domain to another domain | Community
Skip to main content
Level 3
January 27, 2023
Solved

Regarding redirect one domain to another domain

  • January 27, 2023
  • 3 replies
  • 1475 views

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.
Best answer by Umesh_Thakur

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

3 replies

Umesh_Thakur
Community Advisor
Umesh_ThakurCommunity AdvisorAccepted solution
Community Advisor
January 27, 2023

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

October 15, 2024

Ok , could you please give an example

 

Umesh_Thakur
Community Advisor
Community Advisor
October 16, 2024

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 

Siva_Sogalapalli
Community Advisor
Community Advisor
January 27, 2023

@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 

Nupur_Jain
Adobe Employee
Adobe Employee
January 28, 2023

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