Expand my Community achievements bar.

SOLVED

AEM website and URL truncation using jcr resource resolver and/or etc map and/or apache mod_rewrite

Avatar

Level 3

This is regarding the basic setup for a website to show as follows

Dispatcher direct URL of the site: devdispatcher.com/content/mytestsite/index.html  (devdispatcher.com is a virtualhost on my dispatcher)

IN order to access the above site using the following URL.

http://www.mytestsite.com

I have configured my hosts file to point to my local IP and I would like to know what exactly I need to do on JCRresolver and apache. 

also devdispatcher.com/content/mytestsite/articles/article-2017.html   should be accessible using

http://www.mytestsite.com/articles/article-2017.html  

For the above what is best method of implementation. Do we have any example or step by step procedure any where. 

Some articles says etc map and some resourceresolver and some apache. I am confused. Any article which has a recommended direction much appreciate. 

 

Thanks.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Hi,

In your case I would recommend to use both dispatcher/webserver and /etc/map approach:

Sadly I don't have a good documentation available.

Jörg

View solution in original post

1 Reply

Avatar

Correct answer by
Employee Advisor

Hi,

In your case I would recommend to use both dispatcher/webserver and /etc/map approach:

Sadly I don't have a good documentation available.

Jörg