This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: use single Rewritecond ..
Author
Message |
jigarj
Newbie


Joined: 22 August 2011
Posts: 2
Posted: 22 August 2011 at 4:39am

Hi,

We are having mutiple domain redirects that needs to be transfered to new domain URLs. Each domain has 100 such records that needs to be redirected to 100 new URLs. There are around 10 domains for which we need to do a redirect. All these redirects needs to be implemented in a single INI file.

Tried to use RewriteCond but found that the rule only applies to single URL just below it. How to apply same redirection to 100 URls each of them having same domain name?

Once this issue is handled for single domain, we will be using same method  for rest 10 domains.

This is very urgent & any kind of help will be appreciated.

Thanks



Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 22 August 2011 at 5:09am

In ISAPI_Rewrite 2 there's other possibility to handle this in ONE httpd.ini except having RewriteCond before each RewriteRule.
Usually it is done in separate configs for different domains and that allows to avoid using RewriteCond's at all.

P.S. What you need is easily achieved in ISAPI_Rewrite 3 with the help of <VisrtualHost> sections
(see details here http://www.helicontech.com/isapi_rewrite/doc/VirtualHost.htm).

__________________
Regards,
Anton
Back to Top
 
jigarj
Newbie


Joined: 22 August 2011
Posts: 2
Posted: 22 August 2011 at 5:26am

Thanks Anton for your valuable time. I am currently using IsapiRewrite4.dll & .ini file for redirects. Webserver is IIS. I had previously checked the above link but it didn't work from me.
Can you please elaborate more on how this can be achieved by using the IsapiRewire4.dll?
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 22 August 2011 at 7:22am

The name of the dll file does not fully correspond to the version of software. Also please confirm you are using HeliconTech ISAPI_Rewrite.

"I had previously checked the above link but it didn't work from me."
- which link do you mean? What is it that didn't work for you?

If you have ISAPI_Rewrite 3, your global config file will be named httpd.conf. And to achieve what you want, you'll need the following lines:

<VirtualHost www.domain1.com>
RewriteRule (.*) http://www.newdomain.com$1 [R=301,L]
...
</VirtualHost>

<VirtualHost www.domain2.com>
RewriteRule (.*) http://www.newdomain.com$1 [R=301,L]
...
</VirtualHost>

__________________
Regards,
Anton
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version
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 cannot vote in polls in this forum