Title: Hooking mod_rewrite and $_REQUEST
Last modified: August 18, 2016

---

# Hooking mod_rewrite and $_REQUEST

 *  [recordsonribs](https://wordpress.org/support/users/recordsonribs/)
 * (@recordsonribs)
 * [18 years, 8 months ago](https://wordpress.org/support/topic/hooking-mod_rewrite-and-_request/)
 * Hello all
 * I have written a PHP application external to WordPress and now wish to plug it
   in. I have basically two questions. This is my first application, so help would
   be much appreciated.
 * **1. Getting mod_rewrite to send variables to my plugin.**
    I need my to use 
   mod_rewrite for my plugin. I want request [http://domain.com/artists/](http://domain.com/artists/)
   to activate a script, then [http://domain.com/artists/x/](http://domain.com/artists/x/)
   to be equivilent to the url [http://domain.com/artists.php?artist_slug=x](http://domain.com/artists.php?artist_slug=x)
   and in addition be able to send further information into the script – for example
   [http://domain.com/artists/x/bio/](http://domain.com/artists/x/bio/) => [http://domain.com/?artist_slug=x&mode=bio](http://domain.com/?artist_slug=x&mode=bio)
 * Once this is done.
 * **2. Getting input for the plugin from the user.**
    Currently, my application
   used $_REQUEST to get the GET input, for the example, artist_slug and mode. What
   is the WordPress way of doing this – looking at a few plugins, it seems to be
   different, but I can’t quite work it out, so a straight explanation would really
   help.
 * Thanks a lot
 * All the best
 * Alex

The topic ‘Hooking mod_rewrite and $_REQUEST’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [recordsonribs](https://wordpress.org/support/users/recordsonribs/)
 * Last activity: [18 years, 8 months ago](https://wordpress.org/support/topic/hooking-mod_rewrite-and-_request/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
