If you're on Windows, you can modify your hosts file with these instructions [1] or OSX [2] to give you a pseudo domain.If you're talking about for an actual domain, that's a whole different subject and it wouldn't be running on your local host.[1] http://www.howtogeek.com/howto/27350/beginner-geek-...
if you only want to allow 1 path to be chosen, don't put the path field in a mutlfield. Just have it be a pathfield.<relatedPage jcr:primaryType="cq:Widget" fieldLabel="Page Path" name="./relatedPath" xtype="pathfield"> </relatedPage>No need to over complicate.
The only other thing I would change is that you're using the resource resolver factory to create another resource resolver. You already have a resource resolver on the SlingHttpServletRequest (request.getResourceResolver()) - if you use this resource resolver, it will ensure that only people with t...
I think a better approach may be to use a filter rather than a servlet. See this code example and this article I'm thinking what you can do is capture the request with the filter, and then redirect to the path you want with the year/month.
Also, one thing to try out to see if the response that 403's makes it to your servlet, start AEM in debug mode locally (java -jar cq5-author-4502.jar -debug 30303) and attach a remote debugger and see if any of your code is getting executed.
You have your servlet restricted to 2 paths, so the path that you're trying to use will be a 403 because you haven't allowed access to it.@Property(name = "sling.servlet.paths", value = { "/libs/wcm/core/content/sites/createpagewizard.html/content/uc/news/articles", "/libs/wcm/core/content/sites/cre...
PuzanovsP wrote... Why can't you just place robots.txt in your dam? Then you would not need additional work apart from rewrite the url RewriteRule ^/robots.txt$ /content/dam/test/robots.txt [PT] Regards, Peter I agree with this guy. This makes it easier to update and you can restrict permissions ...