Simple Redirect

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 3
Joined: 01 May 2013, 12:44

Simple Redirect

01 May 2013, 12:46

Is it possible to simply set up a simple redirect like:

http://www.domain.com/admin

Actually goes to http://www.domain.com/cms/admin

Any help with this would be greatly appreciated.

TIA :-)

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

Re: Simple Redirect

01 May 2013, 18:07

Hello,

Easy!

Code: Select all
RewriteEngine on
RewriteBase /

RewriteCond %{HTTP:Host} ^(?:www\.)domain\.com$ [NC]
RewriteRule ^admin$ /cms/admin [NC,R=301,L]


Regards
Andrew

User avatar
Posts: 3
Joined: 01 May 2013, 12:44

Re: Simple Redirect

01 May 2013, 21:14

Hey HeliconAndrew...thanks for the response to my question. Greatly appreciated!

Is it possible to set this up for any domain so regardless of the domain, it will follow the rewrite rule?

Thanks again :-)

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

Re: Simple Redirect

01 May 2013, 23:11

Remove RewriteCond line and put the rule in http.conf. Easy as that.

Regards
Andrew

User avatar
Posts: 3
Joined: 01 May 2013, 12:44

Re: Simple Redirect

18 May 2013, 10:45

Hello HeliconAndrew...I posted this a little while ago and have been going nuts migrating servers over. I just wanted to thank you for the help...greatly appreciated :-)

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 22 guests