Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Add trailing slash


    I need to add a trailing slash to the end of my aliases.

    If a user comes to: it must go to: I need this to be done automatically and without a R=301 redirect, because in case of a redirect we will lose our params.


  2. #2
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Nottingham, England
    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

  3. #3
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    North Carolina
    wouldn't it just be
    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
    Options Indexes
    another thing could be if your apache conf doesn't specify the fqdn being used.

  4. $spacer_open
  5. #4
    I don't want to make aliases for each of it. We have hundreds of them.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts