Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Add trailing forward slash / in url

aeryaery Gtricks Forum in 2.2 :) ✭✭✭
edited February 2011 in Vanilla 2.0 - 2.8
Normally, Vanilla by default doesnt have trailing slashes in URL's but A-List Apart and Search Engine Journal reccomends using trailing shashes?

So, my question here is, Should I change the rewrite rule in htaccess? Will is produce some problem in future.

Vanilla Developers, please be sure to add this issue in incoming versions.


There was an error rendering this rich post.


  • Options
    aeryaery Gtricks Forum in 2.2 :) ✭✭✭

    Unsinking it.

    Anyone to answer?

    There was an error rendering this rich post.

  • Options
    ToddTodd Chief Product Officer Vanilla Staff

    I like this sentence in the link:

    Well, to begin with, if you get such a reply from a web developer, start looking for another one because this answer is profoundly incorrect, to say at least

    Did someone threaten to fire you if you don't add a trailing slash?

    Here is my responses to both of these blog posts:

    1. Vanilla passes all of its requests through one file, index.php and uses htaccess to do so. There is no extra disk IO. I'm really not sure what kind of scenario they are applying their logic to, but it certainly doesn't apply to all scenarios.

    2. The second article specifically recommends that you be consistent which is exactly what we do. Even though we accept both a trailing slash and a non trailing slash we always send back a canonical url with the non trailing slash.

  • Options

    Like Todd said very few frameworks nowadays a represented purely by physical directory structure. The argument is basically redundant.

    Her assessment of how servers work, and file systems is not really accurate, and besides the tail should not wag the dog. You should make sure your server is serving appropriately.

    Google wants and their algorithms are about trying model real content, so it is not in their interest to be folly for tricks. SEO "experts" jobs have gradually got harder becuase they are loosing the substance battle.

    The best SEO is real content, and that is what a decent SEO consultant should be focusing on.

    grep is your friend.

Sign In or Register to comment.