[thelist] .htaccess redirect adding unnecessary slash to end of url

Sarah Adams mrsanders at designshift.com
Tue Dec 20 08:10:39 CST 2005


I'm trying to set up a redirect on my site, as follows:
Redirect Permanent /blah http://hardedge.ca

If I go to
http://hardedge.ca/blah
I get redirected to
http://hardedge.ca/

But if I go to
http://hardedge.ca/blah/ <- with a trailing slash
I get redirected to
http://hardedge.ca// <- see the two trailing slashes?

I don't think it's really a show-stopping problem, but it just looks... 
/messy/. Does anyone know of a way to avoid this?

-- 
sarah adams
web developer & programmer
portfolio: http://sarah.designshift.com
blog: http://hardedge.ca



More information about the thelist mailing list