Page 1 of 1

setting up urls and directories for localhost application

PostPosted: 24. June 2012 19:37
by beecatt
I am trying to set up a local application for managing various household tasks and such. I would like to set up the urls in the following format:

host
(landing page when I open my browser, with easy navigation to my localhost environment, frequently visited webpages, search box, etc)
user.host
(general data and settings that belong to a specific household member)
host.topic
(data and settings for a specific topic that apply to the whole household)
user.host.topic
(user-specific data and settings for a particular topic)

However, rather than reloading the page for each content change, I would like to serve everything through a single index.php in the main directory, using ajax to include the appropriate content (html snippets, forms, functions, queries, etc) stored in subfolders, so the url would be changing based on the page content rather than the location of the file being served. I have added my host name as an alias to localhost in my hosts file and created a name-based virtual host for apache with *.host.* as a server alias, but I am not sure what steps to take next as far as setting up the url system. I think I have to use apache's url_rewrite mod, which I have installed, but I'm at a loss as to how to go about implementing it.

Can anyone give any advice, suggestions, or other feedback on this setup?

Re: setting up urls and directories for localhost applicatio

PostPosted: 27. June 2012 14:27
by JonB
My mind is boggled with this idea, so I am not able to make any useful suggestions, sorry.

:(