Forum Moderators: phranque
I'd like to point a new domain(www.mynewdomain.nl) to a sub directory of the web site on aolserver site [myolddomain.nl:81...]
These are my apache settings:
<VirtualHost 123.456.789>
ServerName www.mynewdomain.nl
ServerAlias www.mynewdomain.nl
ProxyRequests Off
ProxyPass / [myolddomain.nl:81...]
ProxyPassReverse / [myolddomain.nl:81...]
</VirtualHost>
I tried...
ProxyPass [myolddomain.nl:81...]
ProxyPassReverse / [myolddomain.nl:81...]
But it then a lot of links and refernces are being screwed up
I'd like apache to redirect www.mynewdomain.nl to www.mynewdomain.nl/my1stsubsite and in the mean time catch the content from www.myolddomain.nl:81/my1stsubsite/
Can anybody give me a hint in the right direction?
i tried rewrite:
<VirtualHost 123.456.789>
ServerName www.mynewdomain.nl
ServerAlias www.mynewdomain.nl
ProxyRequests Off
ProxyPass / [myolddomain.nl:81...]
ProxyPassReverse / [myolddomain.nl:81...]
RewriteEngine on
RewriteRule ^/$ [mynewdomain.nl...]
</VirtualHost>
and redirect:
<VirtualHost 123.456.789>
ServerName www.mynewdomain.nl
ServerAlias www.mynewdomain.nl
ProxyRequests Off
ProxyPass / [myolddomain.nl:81...]
ProxyPassReverse / [myolddomain.nl:81...]
Redirect / [mynewdomain.nl...]
</VirtualHost>
but until now without success.
anybody have a suggestion on how this could be done?
Welcome to WebmasterWorld!
Both of your redirection methods contain minor syntax errors that will prevent them from working properly.
RewriteRule ^/$ http://www.mynewdomain.nl/subdir1
Redirect / http://www.mynewdomain.nl/subdir1
RewriteRule ^/[b](.*)[/b]$ http://www.mynewdomain.nl/subdir1[b]/$1 [R=301,L][/b]
RedirectPermanent / http://www.mynewdomain.nl/subdir1[b]/[/b]
Proxy applications can be very complex, and as a result, few members here feel comfortable making suggestions. I'm not even sure that these corrections will do what you want to do. See the Apache documentation of mod_alias and mod_rewrite for more information.
Jim