.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

apache - Remove .php and add trailing slash in url using htaccess not loading css -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -