How to get this rewrite rule working

ISAPI_Rewrite is a powerful URL manipulation engine based on regular expressions
User avatar
Posts: 2
Joined: 22 Jan 2015, 17:10

How to get this rewrite rule working

22 Jan 2015, 17:19

Hi,
This is what I want to get done.

If user goes to http://site1.com he should be reverse proxied to http://site2.com/folder/default.aspx automatically. Site1.com does not have any content except to redirect to the site2.com.

We are using IIS 6.0. My current rule is below. But it is not working. When I type http://site1.com in the address bar I get a message "under construction". If I add '/' to the end of http://site1.com I get "Directory Listing Denied" message.

RewriteCond %{HTTP:Host} site1.com
RewriteRule (.*) http://site2.com/folder/default.aspx [NC,L]

Please help.

Thanks,
Ram

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: How to get this rewrite rule working

23 Jan 2015, 12:22

Hello, Ram

If it's v2 you are using, please try the following config:

RewriteCond %{HTTP:Host} site1\.com
RewriteRule .* http\://site2.com/folder/default.aspx [RP,L]

BTW, is Site1.com an empty site or is there no such site in IIS at all?
Also check httpd.parse.errors file in ISAPI_Rewrite install folder for possible messages.

User avatar
Posts: 2
Joined: 22 Jan 2015, 17:10

Re: How to get this rewrite rule working

23 Jan 2015, 15:28

Thanks Anton. It works now :)

Ram

User avatar
Posts: 1
Joined: 10 Jul 2017, 11:20

Re: How to get this rewrite rule working

10 Jul 2017, 11:48

It's all in your control panel if you are using CMS system then you can easily redirect your website to the links you want to I had to redirect my web Assignment Writers - Writing Victors with few easy steps. simply go to manage from the setting menu there you will see URL Redirect option, click on redirect button and then simply enter the domain you want to redirect to. the rest of the instruction you can follow up here. https://uk.godaddy.com/help/redirect-ur ... count-5120.

User avatar
Posts: 2
Joined: 21 Aug 2017, 14:43

Re: How to get this rewrite rule working

21 Aug 2017, 16:30

I had a similar problem. Thanks for the help!

User avatar
Posts: 4
Joined: 07 Jul 2017, 04:22

happy wheels

30 Aug 2017, 06:30

This is a very good free game web site. I also often play in free time . Please visit our website and play exciting game
-happy wheels
-impossible game
-roll the ball

User avatar
Posts: 2
Joined: 19 Sep 2017, 05:40

Re: How to get this rewrite rule working

19 Sep 2017, 05:45

Check it out this link and download meena sex photos for free.

http://www.inudesexyphotos.com/2017/04/nude-meena-without-dress-naked-boobs-sex-video.html

User avatar
Posts: 2
Joined: 19 Sep 2017, 05:40

Re: How to get this rewrite rule working

19 Sep 2017, 05:45

Check it out this link and download meena sex photos for free.

http://www.inudesexyphotos.com/2017/04/nude-meena-without-dress-naked-boobs-sex-video.html

User avatar
Posts: 1
Joined: 20 Sep 2017, 07:39

Re: How to get this rewrite rule working

20 Sep 2017, 07:48

I think the problem is in the control panel. Check your control panel carefully. If you are facing any problems related to yahoo account visit us
Code: Select all
https://yahoocustomerservice.co/fix-common-yahoo-mail-errors/

User avatar
Posts: 1
Joined: 06 Dec 2017, 04:03

Re: How to get this rewrite rule working

30 Jan 2018, 04:58

tommyhulk wrote:Thank you for giving them this great knowledge, really thank you for sharing, hope you will have such great posts as this more.
https://street-view.org/

User avatar
Posts: 4
Joined: 18 Jan 2018, 01:00

Re: How to get this rewrite rule working

05 Feb 2018, 05:49

This is extremely helpful info!! Very good work. Everything is very interesting to learn and easy to understood. Thank you for giving information.
http://www.brainpop4.com
http://www.abcya4.com
http://www.hoodamath2.com

Return to ISAPI_Rewrite 2.x

Who is online

Users browsing this forum: Bing [Bot] and 1 guest