Missing slash on URL?

Floren Munteanu nginx at yqed.com
Thu May 29 08:40:02 MSD 2008



Hi Igor,

> -----Original Message-----
> From: Igor Sysoev [mailto:is-G97k7egY2jIKNkxEY4oc4w at public.gmane.org]
> Posted At: Tuesday, May 27, 2008 4:39 AM
> Posted To: gmane.comp.web.nginx.english
> Conversation: Missing slash on URL?
> Subject: Re: Missing slash on URL?
> 
> > /var/www/html/forum is a directory, not a file.
> > /var/www/html/forum/index.php exist and is readable, can be accessed
> through
> > a browser.
> 
> Then /forum will be handled in location '/' as static file or dir,
> and it will be redirected to /forum/.
> 

So how would I make the server add the / at the end of the URL?
If the URL is http://domain.com/forum, I would like it to become
http://domain.com/forum/.

Wordpress uses nginx, as server. If you visit:
http://wordpress.com/features

the missing slash will be automatically added at the end, to become:
http://wordpress.com/features/

Thanks for your help,

Floren







More information about the nginx mailing list