Hi,
I'm a developer writing a dynamic web application that at the moment has page urls like the following:
http://www.example.com/thepencilroom/home/website/test
or
http://www.example.com/thepencilroom/pa ... t/pageId/3
or
http://www.example.com/thepencilroom/di ... bsite/test
thepencilroom is the application name
page or diary is the servlet that serves the page
and then all the other parameters are name and value pairs (ie pageId = 3)
I'm a complete n00b when it comes to apache, but what I'm wanting is that if a user enters the url
test.example.com it would redirect to
www.example.com/thepencilroom/home/website/test (the home page)
or
anothertest.example.com would redirect to
www.example.com/thepencilroom/home/website/anothertest
For all other entries for example
test.example.com/thepencilroom/page/pageId3 would redirect to
http://www.example.com/thepencilroom/pa ... t/pageId/3 (or whatever page was entered)
Hope that makes sense.
I've got access to the server as it will be self hosted so setting parameters in apache.conf won't be a problem.
Thanks for looking
Andrew