I'm working on a helpdesk system and rewrite-rules are making me nuts (Apache rewrite module). Instead of trying to figure this thing out myself, I want to use my time on fun things like programming instead.
Files must be delivered to me today! No excuses. I will only consider price of $40 for this task as an real expert would manage this in 10-15 minutes - a non-professional myself would would use probably half a day, so there is no point to bid at this project if you plan to use so long time.
Im having a multi-brand support site that shares the same php-code. This means that I have one main install with php files:
Site 1: [login to view URL]
And two sites ON ANOTHER DOMAINS (not just different sub-domains):
Site 2: [login to view URL]
Site 3: [login to view URL]
I have redirected everything in both support's vhost file to this:
RewriteRule ^(.*) [login to view URL]$1 [P]
I have also enabled "SSLProxyEngine On" since all these sites have certificates for that to work. All works as far as I can tell. Images, request and everything works. When I go to [login to view URL], I get the files served by [login to view URL] as I should based on the rule above (and the url doesn't change, just like it should).
The biggest problem is when I start to want SEO-friendly URLS for [login to view URL] and support.mythirdsomain.com. Then I have to do some work to figure this out.
I want to be able to
Site 2 and Site 3:
[login to view URL]
[login to view URL]
Rewritten to:
[login to view URL]
[login to view URL]
From: [login to view URL]
To: [login to view URL]
Of course should it also work on root of these domains: [login to view URL] (should go to [login to view URL] on [login to view URL]).
I have put contstant links to css/images/ja with full url/path to the requesting domain (using php and forward-host), so you don't have to worry about that part.
I plan to use these rules for other installs also, so I want a fully tested ready solution for those three rules above. I would perfer as little rules in vhost as possible, even less than that one line I have and would rather just by using .htaccess.
Other things: I'm able to test and test again and again. The point is instead to get a ready tested solution from you, where I don't have a problem with things like this:
[login to view URL] and [login to view URL] give two different result because a regexp isn't matched
Includes some help to implement, but at first, I just want delivered a ready .htaccess-file from you, written in a clear an consise way.