tags:

views:

28

answers:

1

I'm hosting an event and using WordPress to manage the site. We have a separate table (not WP user table) of attendees and I'd like for each of them to have a page on our site:

example.com/user1, example.com/user2, etc.

I've been reading up about WP_Rewrite but am a bit confused about how to conditionally redirect if the user exists, otherwise go about the normal flow.

Any help in achieving this would be much appreciated, thank you!

Edit:

There is a single one-off page that I'm trying to forward to. Right now, it's accessed with:

example.com/user?username=user1

A: 

If i understood your problem, you're going to create a page for each user, so in the permalink structure add tag %postname%, and maybe install no-category base plugin.

Check if the .htaccess it's created with the configuration that wp write for that structure, if it's not you can just copy and paste.

omabena
There won't be a page for each user. Rather, there's a single page that gathers content based on the username passed in the url. I'd like to clean this up with simply example.com/username (but only go there if the user exists, otherwise just handle permalinks as set in wp-admin). Edited the main post for clarity, thanks for your help so far!
Nicky Hajal