.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

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

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