1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Removing the trailing slash from the url redirects

Discussion in 'Troubleshooting and Problems' started by tenants, Jul 30, 2011.

  1. tenants

    tenants Well-Known Member

    When I visit my forum(repalce u for www, and xx for tt.. I'm trying to avoid live links to not get in to trouble)

    hxxp://uuu.surreyforum.co.uk
    it redirects to:
    hxxp://uuu.surreyforum.co.uk/

    When I visit
    hxxp://uuu.surreyforum.co.uk/index.php
    It redirects to:
    hxxp://uuu.surreyforum.co.uk/

    How do I get it to redirect to
    hxxp://uuu.surreyforum.co.uk instead of hxxp://uuu.surreyforum.co.uk/
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    You could do it with .htaccess but why do you want to remove it?
     
  3. tenants

    tenants Well-Known Member

    Its a start on the performance tweaks, the first thing I want to do is remove unnecessary redirects.

    I believe most people will want to visit (by typing in) and want to link to "hxxp://uuu.surreyforum.co.uk" and not "hxxp://uuu.surreyforum.co.uk/"
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    They don't need to type the trailing slash though, unless I've misunderstood your point.
     
  5. Mike

    Mike XenForo Developer Staff Member

    There is no request to domain.com - the minimum request is always to domain.com/ . At lower directory levels, it's Apache that adds the trailing slash.
     
  6. tenants

    tenants Well-Known Member

    Ah, its the same with just about all sites!
    I dont think I had even noticed it before :oops: Thanks
     

Share This Page