I'm looking for a good way to manage my URLs.
So what I currently have:
(main domain) operating out of /public_html/ on my server.
(addon domain) operating out of /public_html/seconddomain.
How can I write some .htaccess code so that:
operates from /public_html/firstdomain.c
operates from /public_html/seconddomain.
Also I want the www versions of the sites to redirect to the non-www versions:
redirects to http://firstdomain.com/
redirects to http://seconddomain.com/
and finally for the first domain how do I get it to pass the requests to a php file:
the request for http://firstdomain.com/some/page/on-my-site
will make a call to http://firstdomain.com/index.php?page=some/page/on-my-site
and this would have to exclude image and css files.
Any help on the above would be fantastic!!
Thanks for your help in advance.