Expand my Community achievements bar.

SOLVED

How to avoid default redirection to /index.html

Avatar

Former Community Member

We have created a website smart.com

we have the path for our homepage  as smart.html

this is the first page in our AEM site structure.

When we type smart.com we should get the home page displayed with URL as smarter.com/content/smarter.html

But by default its getting redirected to smarter.com/index.html.

How we need to stop this redirection?

Where is the setting to remove this default redirection, which is creating a problem for our site  for SEO purpose.

 

Any help in this regard is really appreciated.

Thanks 

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

Ideally, when you hit smarter.com, hit should redirect by default to a geometrixx english page. This can be changed in multiple ways as mentioned below.

however, am not sure of it redirecting to /index.html unless there is some redirection configured at your webserver level.

Changing the root path:

Option 1: Go to /system/console/configMgr, search for 'Day CQ Root Mapping'. Configure the Target to '/content/smarter.html' and save. 

Option 2: Goto to crxde, in the content node, there will be a property called sling:target which will have 'geohome' has the value. Change that value to your page and save.

View solution in original post

2 Replies

Avatar

Employee

Please write a rewrite rule at your webserver to redirect to the page you want when the user just types the domain in the browser url

RewriteRule  "^/$"                 "//content/smarter.html"  [PT]

Avatar

Correct answer by
Level 10

Hi,

Ideally, when you hit smarter.com, hit should redirect by default to a geometrixx english page. This can be changed in multiple ways as mentioned below.

however, am not sure of it redirecting to /index.html unless there is some redirection configured at your webserver level.

Changing the root path:

Option 1: Go to /system/console/configMgr, search for 'Day CQ Root Mapping'. Configure the Target to '/content/smarter.html' and save. 

Option 2: Goto to crxde, in the content node, there will be a property called sling:target which will have 'geohome' has the value. Change that value to your page and save.