views:

35

answers:

2

Hi looking for help making a 301 redirect for:

www.domain.com/word/* to www.domain.com/*

Thanks.

A: 
Redirect 301 /word /
zneak
+1  A: 
RewriteEngine On
RewriteRule ^/?word/(.*) http://sitename.com/$1
meder
Hi How can you also make this work without the "/"after word?
Mike
Did you try killing the `/`?
meder
So www.domain.com/word to www.domain.com
Mike
Tried that but then domain.com/word/xyz goes to domain.com//xyz with two "//"
Mike
Please update your original post with all the requirements.
meder
Ok it worked. Just used: RewriteRule ^/?word(.*) http://www.sitename.com$1 [L,R=301]Thanks
Mike