How to remove /home from URL AEM?

Avatar

Avatar
Boost 10
Level 2
jezwn
Level 2

Likes

11 likes

Total Posts

76 posts

Correct reply

2 solutions
Top badges earned
Boost 10
Give Back 5
Contributor
Shape 1
Springboard
View profile

Avatar
Boost 10
Level 2
jezwn
Level 2

Likes

11 likes

Total Posts

76 posts

Correct reply

2 solutions
Top badges earned
Boost 10
Give Back 5
Contributor
Shape 1
Springboard
View profile
jezwn
Level 2

21-09-2020

What's the best approach to remove "/home" from home page.

AEM home page:
https://localhost:4502/sites.html/content/companyname/home

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Establish
MVP
BrianKasingli
MVP

Likes

647 likes

Total Posts

608 posts

Correct reply

239 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile

Avatar
Establish
MVP
BrianKasingli
MVP

Likes

647 likes

Total Posts

608 posts

Correct reply

239 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
BrianKasingli
MVP

21-09-2020

You can change the node name. There are two easy ways to achieve this.

1. Touch UI.

- Use the "move the page" functionality.

BrianKasingli_0-1600683127009.png

Touch UI will take care of the re-publish and un-publish of the page, and also it's references.

 

2. CRX/DE console
You can change the node name from the CRX/DE console, http://localhost:4502/crx/de/index.jsp#content/companyname/home, change this to home2 for example.

- Making sure you un-publish the page first, then re-publish the page after the change. This method will not be as handy as the Touch UI way, where references page links would not be automatically updated, and re-published.

 

3. Delete the page (from the Touch UI or CRX/DE)

If you don't want the /content/companyname/home page, just delete it.... making sure you unpublish the page first; no reference checks & clean up are done here.

Answers (1)

Answers (1)

Avatar

Avatar
Give Back 5
Employee
vanegi
Employee

Likes

392 likes

Total Posts

378 posts

Correct reply

148 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 10
Give Back
Boost 50
View profile

Avatar
Give Back 5
Employee
vanegi
Employee

Likes

392 likes

Total Posts

378 posts

Correct reply

148 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 10
Give Back
Boost 50
View profile
vanegi
Employee

21-09-2020

 

You can implement either sling:alias or vanity url feature for this use case.

sling:alias – The property may be set on any resource to indicate an alias name for the resource. For example the resource /content/home may have the sling:alias property set to test allowing the resource to be addressed in an URL as /content/test.

Vanity URL - You define Vanity URLs in CQ to create easy-to-remember and easy-to-search URLs on your website.