Title: Permalink in wordpress
Last modified: August 21, 2016

---

# Permalink in wordpress

 *  [ChetanTiwari](https://wordpress.org/support/users/chetantiwari/)
 * (@chetantiwari)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/permalink-in-wordpress/)
 * Hi All,
 * How can I rewrite a permalink in wordpress
    I want to use user login name in 
   wordpress url.
 * domain-name/page-name/uname/user_login i.e
 * domain-name/page-name/variable-name/value-of variable
 * or
 * domain-name/page-name/user_login i.e
 * domain-name/page-name/any-value
 * In place of
 * domain-name/page-name/?variable-name=value-of-variable
 * Can anyone help me out?
 * Thanks in advance

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Alessio Lo Vecchio](https://wordpress.org/support/users/youon/)
 * (@youon)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/permalink-in-wordpress/#post-3852187)
 * User login? Don’t you need BuddyPress for this?
 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/permalink-in-wordpress/#post-3852193)
 * In general, to alter the way WP interprets requested permalinks, use the [Rewrite API](http://codex.wordpress.org/Rewrite_API).
 * To alter how permalinks are displayed on a page you can alter the page template
   or filter `the_permalink()` function using ‘post_link’
 *  Thread Starter [ChetanTiwari](https://wordpress.org/support/users/chetantiwari/)
 * (@chetantiwari)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/permalink-in-wordpress/#post-3852244)
 * Thanks for the quick reply but I have to do it in WordPress not in Buddypress
 * I have also created a plugin for that which is mentioned in this link
 * [http://stackoverflow.com/questions/2210826/need-help-with-wp-rewrite-in-a-wordpress-plugin](http://http://stackoverflow.com/questions/2210826/need-help-with-wp-rewrite-in-a-wordpress-plugin)
 * but it doesn’t work for me it simply show the value of the variable passed in
   the permalink and I’ve to use it as a variable for further use in a template

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Permalink in wordpress’ is closed to new replies.

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 3 replies
 * 3 participants
 * Last reply from: [ChetanTiwari](https://wordpress.org/support/users/chetantiwari/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/permalink-in-wordpress/#post-3852244)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
