Results 1 to 4 of 4
Hi,
I need to add a trailing slash to the end of my aliases.
If a user comes to: domain.com/test it must go to: domain.com/test/. I need this to be ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 05-13-2009 #1Just Joined!
- Join Date
- Dec 2008
- Posts
- 9
Add trailing slash
Hi,
I need to add a trailing slash to the end of my aliases.
If a user comes to: domain.com/test it must go to: domain.com/test/. I need this to be done automatically and without a R=301 redirect, because in case of a redirect we will lose our params.
Thanks,
- 05-13-2009 #2
I assume this is apache?
I always hated doing apache aliases. Doesn't apache just replace one matched string with another if you're using an alias? To include the trailing '/', you just add it to the end of the alias declaration, doncha? I could be wrong here, my knowledge of this is limited.Linux user #126863 - see http://linuxcounter.net/
- 05-13-2009 #3
wouldn't it just be
Code:Alias /webfolder /var/www/path Alias /webfolder/ /var/www/path
been a while, could also be if the directory is not browsable, make sure your options has indexing enabled in your virtual host
another thing could be if your apache conf doesn't specify the fqdn being used.Code:Options Indexes
- 05-13-2009 #4Just Joined!
- Join Date
- Dec 2008
- Posts
- 9
I don't want to make aliases for each of it. We have hundreds of them.


Reply With Quote
