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 ✭✭✭
edited February 2011 in Vanilla 2.0 - 2.8
Normally, Vanilla by default doesnt have trailing slashes in URL's but A-List Apart http://www.alistapart.com/articles/slashforward/ and Search Engine Journal http://www.searchenginejournal.com/linking-issues-why-a-trailing-slash-in-the-url-does-matter/13021/ 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.

Regards,
Abhishek
http://gtricks.com/forum

There was an error rendering this rich post.

Comments

  • aeryaery ✭✭✭

    Unsinking it.

    Anyone to answer?

    There was an error rendering this rich post.

  • ToddTodd Vanilla Staff

    I like this sentence in the searchenginejournal.com 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.

  • 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.