how to set the website URL to hit he home page in Cloud AEM | Community
Skip to main content
Level 8
June 3, 2021
Solved

how to set the website URL to hit he home page in Cloud AEM

  • June 3, 2021
  • 1 reply
  • 2228 views

in AEM we have a home page, e.g. 

/content/site1/en/home.html

we can access this by entering www.oursite.com/content/site1/en/home.html

But if a user hits www.oursite.com they get a blank page.

I am guessing we need to setup some sort of redirect in dispatcher, but didnt find any tutorials for this.  There were different instructions for IIS and apache, but as its cloud, we dont know which if these are being used.

Any suggestions?

We know about apache configuration, so are comfortable with virtual hosts etc, but have no idea about farms.

NOTE: this is for non prod for now.

 

 

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 Asutosh_Jena_

Hi @tb3dock 

 

You need to apply a redirect in your dispatcher. Please add the below rule.

 

RewriteCond %{REQUEST_URI} ^/$
RewriteRule (.*) /content/site1/en/home.html [PT,L]

Thanks! 

1 reply

Asutosh_Jena_
Community Advisor
Asutosh_Jena_Community AdvisorAccepted solution
Community Advisor
June 3, 2021

Hi @tb3dock 

 

You need to apply a redirect in your dispatcher. Please add the below rule.

 

RewriteCond %{REQUEST_URI} ^/$
RewriteRule (.*) /content/site1/en/home.html [PT,L]

Thanks! 

TB3dockAuthor
Level 8
June 3, 2021
this is helpful, thanks. I see in the displatcher.cloud dir, are various subdirs, including conf.d and conf.dispatcher.d, enabled_vhosts, rewrites, virtualhosts, filters, etc. Any suggestions as to the best one to add this?