You are here:  » Missing trailing slash causing 404

Support Forum



Missing trailing slash causing 404

Submitted by noodles on Sun, 2006-12-31 11:23 in

Hi David

A directory has added my site but missed the trailing slash off the merchants page What would i need to do to stop the 404?

Thanks
Dave

Submitted by support on Sun, 2006-12-31 13:29

Hi Dave,

No problem - the way to do this is to add a rule to your .htaccess file to do a 301 redirect (moved permanently) to the correct URL. The following line does the trick:

RewriteRule ^merchant$ merchant/ [L,R=301]

Insert this rule immediately before the following line:

RewriteRule ^merchant/$ merchants.php

Cheers,
David.

Submitted by noodles on Sun, 2006-12-31 14:43

Thanks David, works great