Redirect subfolder to another domain

New to mod_rewrite? This is a good place to start.

Redirect subfolder to another domain

Postby skione » Tue Jun 10, 2008 5:10 am

I need a mod rewrite rule that will do the following: shows content located at

I would like the URL in the address bar to remain

Or as close to this as I can get.


OK so I realize that i need mod_rewrite and mod_proxy.

I set up an .htaccess file in the folder where I wanted to redirect with the following contents:
Options +FollowSymLinks

RewriteEngine On

RewriteRule ^\.?$ [NC,P,L]

But now all referential links on the redirected domain are broken.

Help please?

In the end this did it:

ProxyPass /dev1/
ProxyPassReverse /

I added this to the conf file for the vhost.
Posts: 1
Joined: Tue Jun 10, 2008 5:07 am

Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 11 guests