Open pjesi opened 11 years ago
@mwanji, can you review this branch for me?
Do you think we could implement custom domains with URL rewriting? Eg.
http://mwanji.myessayist.com/essay/123 => http://www.myessayist.com/mwanji/essay/123
I think this could happen in a new filter or, at worst, by subclassing and modifying MerfFilter.
The advantage is that we wouldn't have to touch the controllers.
Could the filter also rewrite:
http://mwanji.com/essay/123 => http://www.myessayist.com/mwanji/essay/123
I am not 100% if URL rewrite works on the full URL or just the path. Would have to check. But it definitely sounds like a cleaner approach.
I believe the HttpServletRequestWraapper allows you you to override every method on HttpServletRequest, so it should be feasible.
Of course, you are right. I had forgot about how this works.
On Sat, Feb 2, 2013 at 6:25 AM, Moandji Ezana notifications@github.comwrote:
I believe the HttpServletRequestWraapper allows you you to override every method on HttpServletRequest, so it should be feasible.
— Reply to this email directly or view it on GitHubhttps://github.com/mwanji/essayist/issues/66#issuecomment-13025454.
I would like to configure a custom URL for my profile that would map to my entity. I am already working on the code but I am not quite sure how to add the domain to the db stuff.