Question : How to redirect a subdirectory to an alternate server and retain original URL

Hello,
Problem:
Would like to redirect subdomain foo.domain.com to an alternate domain on another server named bar-xyz.domain.com but still retain the original URL in the browser address line.

I tried setting up a CNAME but it did not accomplish the desired effect as it changed the URL to the target. I then tried placing an .htaccess file in the directory foo (where foo subdomain lives) with the following:
------------------------------------
RewriteEngine       on
RewriteCond %{HTTP_HOST}   !^www\.foo\.domain\.com [NC]
RewriteCond %{HTTP_HOST}   !^$
RewriteRule ^/?(.*)         http://bar-xyz.domain.com/$1 [L,R=301,NE]
------------------------------------
which gave me the same effect.

Any suggestions would be greatly appreciated.

Thanks,
Jim

Answer : How to redirect a subdirectory to an alternate server and retain original URL

Hi,

Good question, but unfortunately I'm not aware of a specific tutorial that shows all of the steps or the entire process.

Have you read the Security section of the GP 10 help file?  It appears to be pretty straightforward, albeit the discussion is in topical chunks.

It's under:

Setting up the system -> User setup -> Security

Let me know if there are specific questions that it doesn't address.

Thanks,

Steve Endow
Dynamics GP Certified Trainer
Dynamics GP Certified Professional


Random Solutions  
 
programming4us programming4us