Microsoft
Software
Hardware
Network
Question : Htaccess Redirect Directory on specific host
Hi there,
We use a deployment strategy that uploads the same source to multiple servers, however we have two directories which should be inaccessible on two servers, I want to create a redirect for these directories if someone tries to access them on one of these particular servers.
The logic is:
If request url = example.com/dir1 redirect to homepage
However it needs to allow requests to example2.com/dir1
Is this possible with .htaccess or will I need to use php?
Cheers
Answer : Htaccess Redirect Directory on specific host
It possible e.g.
RewriteEngine On
RewriteCond %{HTTP_HOST} example.com [NC]
RewriteRule ^dir1 /index.html [R=301,L]
Random Solutions
Deploy application using GPO win 2008 R2
Source: NETLOGON Event ID: 5773 error with in DNS
windows 2008 64 server
Multiple Stored Procedures in a single transaction
Crystal Reports Xi - Sorting a CrossTab Report by a Summary Field
How Do I run a specific fix and test in ISINTEG
simple VB file download example
end tag for "head" which is not finished
Problem with FindString IN SSIS
Install crashes Office 2007 Pro on Windows 2003 SP2 server