This should work: RewriteCond %{HTTP_HOST} ^1st-domain\. Com RewriteRule ^$ 3rd-domain.com R=permanent,L RewriteCond %{HTTP_HOST} ^1st-domain\. Com RewriteRule ^(.+)$ 2nd-domain.com/$1 R=permanent,L Hope it helps!
Thanks for trying, but the second rule picks up both requests an empty and non-empty request_uri. Any thoughts? – pchap10k Apr 17 at 13:55 Ok I worked it out, but your answer was very close.
A: Apache never returns an empty request_uri, an empty request comes through as '/' so I just changed the first rewrite rule to ^\/$ and it works! – pchap10k Apr 17 at 14:06 @crunchyt: Your rewrite rules are in httpd. Conf, correct?
I tested mine in .htaccess. REQUEST_URI is slightly different between httpd. Conf and .
Htaccess, it starts with an extra backslash in httpd.conf. Glad you have figure it out! :) – szemian Apr 17 at 16:58.
Your rules redirects request with empty QUERY_STRING. For empty request_uri, you can use RewriteCond %{HTTP_HOST} ^1st-domain\. Com$ RewriteRule ^$ 3rd-domain.com$1 R=permanent,L RewriteCond %{HTTP_HOST} ^1st-domain\.
Com RewriteRule ^(.*)$ http://2nd-domain.com$1 R=permanent,L The first rule will first match , then tests for (which can't be now since we've processed it before).
I am using the following to catch empty REQUEST_URL: RewriteEngine on RewriteCond %{REQUEST_URI} "^/$" RewriteRule ^(.*) %{HTTP_HOST}/my/another/url.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.