Help with redirect
3 posts
• Page 1 of 1
Help with redirect
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!
RewriteRule ^departments/deptname/* http://deptname.business.com [R=301,L,NC]
But it doesn't work. What did I screw up? Thanks!
Re: Help with redirect
Anyone? Sorry, don't wanna be a pest, but it'd be real handy if I could get this working. Thanks!
Re: Help with redirect
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]
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]
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 10 guests