httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Andersson" <rob...@profundis.nu>
Subject Re: [users@httpd] Redirect question
Date Wed, 01 Oct 2003 08:55:21 GMT
Jason Lieurance wrote:
> Ahhh, but the reason it did not work is because I had:
>
> Redirect /index.html http://www.foo.com
>
> instead  of:
>
> Redirect /index.html http://www.foo.com/index.php

And the reason you had to was because you didn't have index.php in your
DirectoryIndex directive. If Redirect /index.html http://www.foo.com/
doesn't work, then entering http://www.foo.com/ in the address bar won't
work either.

What you are doing above is just as bad as the previous hosters/webmasters:
linking directly to the exact document. When you decide to use .jsp or, god
forbid, .asp, it will break again.

Aviod leaking the underlying technology into the URI!There is a good
document on this, entitled "Cool URIs don't change":
http://www.w3.org/Provider/Style/URI

Regards,
Robert Andersson


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message