Skip to content

Commit

Permalink
Some minor rewording
Browse files Browse the repository at this point in the history
  • Loading branch information
An Phan committed Apr 8, 2015
1 parent e359543 commit 38637cc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,7 @@ RewriteRule ^(.*)/$ /$1 [R=301,L]
```

### Remove Trailing Slash from Arbitrary Paths
This snippet will redirect paths ending in slashes to their non-slash-terminated counterparts (except for actual directories).
E.g., `http://www.example.com/blog/` -> `http://www.example.com/blog`
This is important for SEO, since it is [recommended to have a "canonical URL" for every page](http://overit.com/blog/canonical-urls).
This snippet will redirect paths ending in slashes to their non-slash-terminated counterparts (except for actual directories), e.g. `http://www.example.com/blog/` to `http://www.example.com/blog`. This is important for SEO, since it's [recommended](http://overit.com/blog/canonical-urls) to have a canonical URL for every page.
``` apacheconf
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
Expand Down

0 comments on commit 38637cc

Please sign in to comment.