Help with redirect

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 9
Joined: 03 Oct 2012, 11:17

Help with redirect

15 Jan 2016, 12:58

Hi. I'm obviously overlooking something, because I'm sure this should be simple. I migrated sites recently from a shared portal setup to individual. The paths for each department were like www.legacysystem.com/departments/deptname/home.aspx and now they are just deptname.business.com. I want to grab anything trying to pull from the department path so I tried this:

RewriteRule ^departments/deptname/* http://deptname.business.com [R=301,L,NC]

But it doesn't work. What did I screw up? Thanks!

User avatar
Posts: 9
Joined: 03 Oct 2012, 11:17

Re: Help with redirect

19 Jan 2016, 13:39

Anyone? Sorry, don't wanna be a pest, but it'd be real handy if I could get this working. Thanks!

User avatar
Posts: 402
Joined: 06 Mar 2012, 11:59

Re: Help with redirect

25 Jan 2016, 09:22

Hello.

I am sorry for the delay.
The rule you wrote may actually work, so maybe you could show exact rule and exact URL you are trying it against? Also, it would be nice to see your complete .htaccess configuration file.
Just in case please try this more generic rule instead:

RewriteRule ^departments/deptname(.*) http\://deptname.business.com$1 [R=301,L,NC]

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 5 guests