How to avoid default redirection to /index.html

Avatar

15-10-2015

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 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 25
MVP
bsloki
MVP

Likes

182 likes

Total Posts

1,859 posts

Correct reply

545 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 50
Boost 5
View profile

Avatar
Validate 25
MVP
bsloki
MVP

Likes

182 likes

Total Posts

1,859 posts

Correct reply

545 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 50
Boost 5
View profile
bsloki
MVP

15-10-2015

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.

Answers (1)

Answers (1)

Avatar

Avatar
Boost 5
Employee
kalyanar
Employee

Likes

5 likes

Total Posts

182 posts

Correct reply

78 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 50
Affirm 5
View profile

Avatar
Boost 5
Employee
kalyanar
Employee

Likes

5 likes

Total Posts

182 posts

Correct reply

78 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 50
Affirm 5
View profile
kalyanar
Employee

15-10-2015

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]