Home AEM Internal Redirect
Reply: 0

AEM Internal Redirect

user899
1#
user899 Published in July 21, 2018, 1:46 pm

I'm trying to do an internal redirect in AEM 6.3, what I'm trying to do is: any request coming to localhost:4502/aem should be redirected to localhost:4502/content/myapp/en/login.html. So I created a sling:mapping node under /etc/map/http/:

jcr:primaryType="sling:Mapping"  
sling:internalRedirect=/content/myapp/en/login.html -> Type String
sling:match=localhost.4502/aem -> Type String 

I'm getting an Internal Server Error: Cannot serve request to /aem on this server. But if I add the .html suffix (request to localhost:4502/aem.html it works and redirects correctly.

Also tried:

sling:match=localhost.4502/aem(.*)(/.*)?

I wonder what I'm missing/doing wrong. Thanks in advance for your help.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.302426 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO