Topic: ISAPI_Redirect not working
|

|
| Author |
|
WHOISjohngalt Newbie

Joined: 19 July 2010
Online Status: Offline Posts: 3
|
| Posted: 19 July 2010 at 4:10pm | IP Logged
|
|
|
One of our clients has three sites that they own, and we
are trying to use a .htaccess file to redirect two of the
sites, say www.oldsite.com and www.otherold.com, to one
site, www.newsite.com. The .htaccess file we are using is:
RewriteEngine On
RewriteCond !^www\.newsite\.com
RewriteRule (.*) http://www.newsite.com/$1 [R=301,L]
When we browse to www.oldsite.com and www.otherold.com,
only one of them redirects, and that is only in certain
browsers. Is there a specific reason that the code isn't
working? What other code would we have to use?
|
| Back to Top |
|
| |
AndrushkaUS Senior Member

Joined: 13 November 2009 Location: United States
Online Status: Offline Posts: 1545
|
| Posted: 20 July 2010 at 6:54am | IP Logged
|
|
|
Please, see examples.
It contains the rules for such purpose.
Regards
Andrew
__________________ The will to conquer is the first condition of VICTORY
|
| Back to Top |
|
| |
yamada Newbie

Joined: 19 July 2010
Online Status: Offline Posts: 8
|
| Posted: 23 July 2010 at 7:53am | IP Logged
|
|
|
thank
AndrushkaUS for reply.
I'll lcheck it.
thank you.
|
| Back to Top |
|
| |
WHOISjohngalt Newbie

Joined: 19 July 2010
Online Status: Offline Posts: 3
|
| Posted: 23 July 2010 at 12:37pm | IP Logged
|
|
|
I've already checked the Examples page, none of them work
for the purpose of redirecting the old sites to the new one
when one of the old sites is requested.
|
| Back to Top |
|
| |
AndrushkaUS Senior Member

Joined: 13 November 2009 Location: United States
Online Status: Offline Posts: 1545
|
| Posted: 26 July 2010 at 3:56am | IP Logged
|
|
|
Please, check if ISAPI_Rewrite is working at all as described in rel="nofollow" rel="nofollow">FAQ.
In .htacces of www.oldsite.com (and www.otherold.com), please, try using the following:.
Code:
RewriteEngine On
RewriteBase /
RewriteRule (.*) http://www.newsite.com/$1 [NC,R=301,L] |
|
|
[NC] flag should make rule case insensitive.
Regards
Andrew
Edited by AndrushkaUS - 26 July 2010 at 3:57am
__________________ The will to conquer is the first condition of VICTORY
|
| Back to Top |
|
| |
WHOISjohngalt Newbie

Joined: 19 July 2010
Online Status: Offline Posts: 3
|
| Posted: 28 July 2010 at 1:06pm | IP Logged
|
|
|
We ended up doing something other than that, but thanks
anyway.
|
| Back to Top |
|
| |
|
|
If you wish to post a reply to this topic you must first login
If you are not already registered you must first register
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You can vote in polls in this forum
|