.htaccess - Redirect directory to the same directory but in a subfolder using htaccess -


lets take following example:

redirect 301 /crowdfund/ http://website.com/crowdfund/browse/ 

currently creating redirect in format:

http://website.com/crowdfund/browse/browse/browse/browse/browse/browse/browse/browse/browse/browse/browse/browse/browse/browse/browse/browse/browse/browse/browse/browse/browse/

what doing wrong here?

thanks!

use redirectmatch exact regex match instead:

redirectmatch 301 ^/crowdfund/?$ http://website.com/crowdfund/browse/ 

in rule /crowdfund/ being matched before , after redirect.


Comments

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -