Title: will this plugin do this
Last modified: October 18, 2019

---

# will this plugin do this

 *  [gnfb](https://wordpress.org/support/users/gnfb/)
 * (@gnfb)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/will-this-plugin-do-this-2/)
 * When the website adds a author he gets a url that directs to his endeavours
    
   [http://mysite.com/user/sam](http://mysite.com/user/sam) what want to happen 
   is that anyone can type in [http://mysite.com/sam](http://mysite.com/sam) and
   it will go to the [http://mysite.com/user/sam](http://mysite.com/user/sam) location
   The plugin needs to do this in the background for each user author if this will
   do this please show example Oh by the way I cannot change the permalink /pin/%
   postname%/ i am using

Viewing 1 replies (of 1 total)

 *  Plugin Author [Brandon Allen](https://wordpress.org/support/users/thebrandonallen/)
 * (@thebrandonallen)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/will-this-plugin-do-this-2/#post-12468495)
 * Edit Author Slug does not do this, for the very simple fact that… it’s not simple.
   You can certainly do this, and here’s how:
    1. Intercept every request
    2. Check if a post or page exists, and verify that none of your plugins have created
       an endpoint that matches that request.
    3. If nothing in the previous step returns true, check to see if a user exists 
       at that `user_nicename`.
    4. If the user exists, redirect, if not 404
    5. You can always do the user check first, but it’s much more likely that a request
       will be for a post/page than it will be for a user page. You don’t want to redirect
       to a user `sam` when/if there is a page `sam`, because which one is the user
       requesting?
    6. Also, keep in mind, that whenever you let the request fall through to the next
       step, whether it’s to go on to the requested page, or to the correct user URL,
       WP will do a lot of these same checks over again.

Viewing 1 replies (of 1 total)

The topic ‘will this plugin do this’ is closed to new replies.

 * ![](https://ps.w.org/edit-author-slug/assets/icon.svg?rev=1582213)
 * [Edit Author Slug](https://wordpress.org/plugins/edit-author-slug/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/edit-author-slug/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/edit-author-slug/)
 * [Active Topics](https://wordpress.org/support/plugin/edit-author-slug/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/edit-author-slug/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/edit-author-slug/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [Brandon Allen](https://wordpress.org/support/users/thebrandonallen/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/will-this-plugin-do-this-2/#post-12468495)
 * Status: not resolved