.htaccess for wordpress network @wpengine - adds trailing slash to 404 pages


/ Published in: Apache
Save to your folder(s)

In my WP networks, I use a custom 404 page and plugin to answer calls asking for user information from a custom api. The API requires a URL format like this:
domain.com/username/
However, users don't ever type a trailing slash, nor should they, so this allows for a trailing slash anywhere but inside admin, except where it is needed in admin...

URL: http://twitter.com/lchoate

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.