Top "Trailing-slash" questions

A slash sign at the end of a URL.

When should I use a trailing slash in my URL?

When should a trailing slash be used in a URL? For example - should my URL look like /about-us/ or …

url url-rewriting seo trailing-slash url-design
Return string without trailing slash

I have two variables: site1 = "www.somesite.com"; site2 = "www.somesite.com/"; I want to do something like this function …

javascript string trailing-slash
Add Trailing Slash .htaccess

I'm trying to get the following effect (using this local file http://localhost/[company_name]/[project_name]/.htaccess): http://localhost/[…

.htaccess mod-rewrite redirect slash trailing-slash
Removing trailing slash from ALL URLs in site

I'm kind of new to the whole .htaccess thing and I've been trying to modify it so that none of …

.htaccess trailing-slash
How to remove trailing slash from URL in nginx only if directory doesn't exist?

I am running a server on nginx 1.4.1 with PHP-FastCGI. Currently I have it setup so that it removes trailing slashes …

redirect configuration nginx trailing-slash
Remove trailing slash using .htaccess in WordPress

I'm looking for a way to remove trailing slash for all WordPress URL's. I found similar answers like this one …

wordpress .htaccess mod-rewrite trailing-slash
Create new URI from Base URI and Relative Path - slash makes a difference?

Why does a slash make difference when using new URI(baseUri, relativePath)? This constructor creates a Uri instance by combining …

c# .net uri trailing-slash
IIS Forces Slash even with URL Rewrite to remove it

I am unable to remove the trailing slash my site's URLs even with the URL rewrite from: http://ruslany.net/2009/04/10…

iis-7 url-rewriting trailing-slash
How can I make a trailing slash optional on a Django Rest Framework SimpleRouter

The docs say you can set trailing_slash=False but how can you allow both endpoints to work, with or …

django trailing-slash django-rest-framework
laravel trailing Slashes redirect to localhost

When I try this http://localhost/Testlaravel/public/users/login it works. But when I try http://localhost/Testlaravel/public/…

php regex .htaccess mod-rewrite trailing-slash