Using RewriteProxy with blog content

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 2
Joined: 20 Nov 2013, 05:42

Using RewriteProxy with blog content

20 Nov 2013, 07:58

I’m new to this and was wondering how would i use RewriteProxy in the following situation?

I have a website hosted by myself (www.mydomain.com), a wordpress blog hosted by another company (blog.mydomain.com), however how do i proxy the wordpress content when i type http://www.mydomain.com/blog/ in my site?

I’m using ISAPI_Rewrite 3 from Helicon with IIS6

any help will be greatly appreciated!!

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: Using RewriteProxy with blog content

20 Nov 2013, 11:52

Hello,

The rule should be simply:

Code: Select all
RewriteEngine on
RewriteBase /

RewriteCond %{HTTP:Host} ^www\.domain\.com$ [NC]
RewriteRule ^blog(/.*)$ http://othersite.com$1 [NC,P]


Regards
Andrew

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 17 guests