Title: Search function permalinks &#8211; /search/
Last modified: August 19, 2016

---

# Search function permalinks – /search/

 *  [boon_](https://wordpress.org/support/users/boon_/)
 * (@boon_)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/search-function-permalinks-search/)
 * I’ve set my search form up as follows using…
 * `<form id="searchform" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get"
   >`
 * …and have search.php in place.
 * This works fine **but** the results page functions under `/index.php?s=test`
 * How can I change the search so it works as `/search/test/` etc. the same as my
   other “pretty” permalinks?
 * Also, when the search box is empty and it’s submitted – I get only `?s=` – without
   index.php. This causes a different page (the absolute root) to show as my site
   is located in `/home/` for now.
 * Can anyone help?
 * Thanks a lot

The topic ‘Search function permalinks – /search/’ is closed to new replies.

## Tags

 * [search function](https://wordpress.org/support/topic-tag/search-function/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [boon_](https://wordpress.org/support/users/boon_/)
 * Last activity: [17 years, 2 months ago](https://wordpress.org/support/topic/search-function-permalinks-search/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
