.htaccess: Allow only one Folder Structure - 301 Redirect

Posted by elmaso on Stack Overflow See other posts from Stack Overflow or by elmaso
Published on 2010-04-06T23:43:49Z Indexed on 2010/04/06 23:53 UTC
Read the original article Hit count: 277

Filed under:
|
|

Hello, how can I allow only one Folder-Structure with .htaccess like that:

http://www.example.com/**dynamicword**+FIXEDWORD1+FIXEDWORD2/

the dynamicword is not fix, anything else is 301:

http://www.example.com/**dynamicword**+FIXEDWORD1+mistype/mistype/ --> 301
http://www.example.com/**dynamicword**+FIXEDWORD1+mistype/mistype --> 301
http://www.example.com/**dynamicword**+FIXEDWORD1+FIXEDWORD2/mistype --> 301

Is that possible?

© Stack Overflow or respective owner

Related posts about .htaccess

Related posts about rewrite