Title: Pretty permalinks when accessing second database.
Last modified: August 20, 2016

---

# Pretty permalinks when accessing second database.

 *  [impolex](https://wordpress.org/support/users/impolex/)
 * (@impolex)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/pretty-permalinks-when-accessing-second-database/)
 * This is more of a can I do it question.
 * Is it possible to have pretty permalinks when accessing a second MySQL databases?
 * Scenario: I will have a “search form” which will be sending a key using GET to
   page template that will be populated by information a second database based on
   the key. I want to be able to use WP_Rewrite to turn the full query string (including
   the key sent to the second database) into a pretty permalink that can be directly
   accessed.
 * In other words the end result should be permalinks that look like: mywp.com/cities/
   syracuse
 * Cities is the name of the page and Syracuse defines the information from the 
   database that is being accessed.
 * At my disposal so far I have the WP_Rewrite and code to access the second database(
   [http://bavotasan.com/2011/access-another-database-in-wordpress/](http://bavotasan.com/2011/access-another-database-in-wordpress/)),
   should I be aware of anything else?

The topic ‘Pretty permalinks when accessing second database.’ is closed to new replies.

## Tags

 * [database](https://wordpress.org/support/topic-tag/database/)
 * [MySQL](https://wordpress.org/support/topic-tag/mysql/)
 * [permalinks](https://wordpress.org/support/topic-tag/permalinks/)
 * [pretty permalinks](https://wordpress.org/support/topic-tag/pretty-permalinks/)
 * [query](https://wordpress.org/support/topic-tag/query/)
 * [WP_Rewrite](https://wordpress.org/support/topic-tag/wp_rewrite/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [impolex](https://wordpress.org/support/users/impolex/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/pretty-permalinks-when-accessing-second-database/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
