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

Matt Warden mwarden at gmail.com
Tue Dec 20 09:41:32 CST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sarah Adams wrote:
> 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?
> 

Have you tried:

Redirect Permanent /blah/ http://hardedge.ca
Redirect Permanent /blah http://hardedge.ca

- --
Matt Warden
Miami University
Oxford, OH, USA
http://mattwarden.com


This email proudly and graciously contributes to entropy.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDqCYsrI3LObhzHRMRAnlbAKCNcq+/s/Ub6/5e4+EEpKmulbJD7ACeJtW+
+jMgMGSdcljtBcO1R5uaGr0=
=0tRK
-----END PGP SIGNATURE-----



More information about the thelist mailing list