Welcome Guest, Not a member yet? Register   Sign In
Site Anchors - Friendly URL's
#11

[eluser]syntax error[/eluser]
At the end of the day, the best url would be one with an extension, then there would only be 1 url for the requested page, therefore eliminating the possibility of duplicate content, but I do not like the extension, I want my members to have clean urls to point to their profile.. so I think I will stick with the trailing slash, your point taken, and use .htaccess or routes to perform a 301 redirect.. Thank you for your discussion, I have come to a conclusion. Wink
#12

[eluser]Pygon[/eluser]
Trailing slash does matter:

Consider APACHE's MultiViews which will result in:

site.com/foo/bar

which can be:

site.com/foo/bar.html
site.com/foo/bar.php
site.com/foo/bar/index.html
site.com/foo/bar/index.php
etc.. etc....

So yeah, it can matter.

Throw on google analytics for example, and you'll note that links to "foo/bar" is tracked differently than "foo/bar/".

Anyway... my recommendation would be to use a trailing slash in your urls (since someone typing in without a trailing slash will still get the same page from CI




Theme © iAndrew 2016 - Forum software by © MyBB