Only way I knowit to do this it’s using this function:
/* * Redirects search results from /?s=query to /search/query/, converts %20 to + * @link http://txfx.net/wordpress-plugins/nice-search/ * ======================================= */ function search_redirect() { if (is_search() && strpos($_SERVER['REQUEST_URI'], '/wp-admin/') === false && strpos($_SERVER['REQUEST_URI'], '/find/') === false) { wp_redirect(home_url('/finde/' . str_replace(array(' ', '%20'), array('+', '+'), urlencode(get_query_var('s')))), 301); exit(); } } add_action('template_redirect', 'search_redirect');
It’s this you wanna do?
Related Posts:
- remove “index.php” from permalinks
- How to remove dates from existing permalinks?
- “.#[random-char-string]” being inserted at end of URLs
- How to map permalinks with accented letters to sanitized slugs?
- How to remove specific category from URL in WordPress
- mod-rewrite exception? keep #hash in matching urls?
- Access posts while mod_rewrite is broken
- How can I put WordPress in a directory but keep just the home page at the domain root?
- how to create several url aliases for a page
- Need help with add_rewrite_rule
- How do I add /blog/ as a prefix to permalink structure for blog posts, tag pages, etc.?
- Permalink format: singular or plural
- Pretty permalinks for search results with extra query var
- How to get pretty URLs with add_query_arg in permalinks
- Custom post type permalink endpoint
- Using $_GET variables in the URL?
- URL rewrite based on a custom field value
- How to change author base without front
- How to create a permalink structure for posts in a specific category
- Without index.php in permalinks I get 404 across site
- Add custom directory in URL
- Using two permalinks for one post
- Custom rewrite rules for a $_GET request
- Nice RSS Feed URLs for each custom post type
- Custom rewrite rules for feeds of custom queries (query_var query strings in URL)?
- Put post ID on the custom post type URL
- Rewrite url / permalink for default archive – yearly / monthly
- Random Alphanumeric Key URLs
- Permalinks, Rewrites, Get Variables, Oh My!
- Change permalink for a single post entry
- Remove the Parent category from the permalink but leave the child category
- Apostrophe in permalink results in page not found
- Change permalinks with ACF values
- Can’t get rewrite rules working
- Multilanguage URLs
- Rewrite my default post URL
- I need a custom permalink for my website
- Attachment Page Permalink/URL Rewrite Issue. How to change the actual rewriting?
- Does changing a post title of a published post automatically change permalink?
- Remove custom taxonomy base from URL
- Add custom post type name in term link?
- add_rewrite_rule not working for me
- Using WP Rewrite, but just not “getting it”
- Force wordpress to display page with same url structure as categories
- How can i have a custom post type with more slugs for each post?
- URL rewriting: removing the site’s basename for a specific category
- How can I get this custom post type permalink structure? %custom_post_type%-%taxonomy%-%term-postname%
- Rewrite rule intended for CPTs gives 404 for pages
- Unable to get /%postname%/ permalinks working, 404 on all links
- Permalink structure between 2 custom post types and a taxonomy
- 404 error using Meta for Permalink rewrite
- Disable date based archives for all categories except one
- Permalinks only for posts
- How to rename ‘Tag Base’ with WPeC 3.8?
- Custom rewrite rule ignored
- How to handle paging/pagination with a custom permalink?
- Remove parent page from url
- Visiting posts results in 404 errors after host migration
- Can’t get permalinks working!
- Custom URL rewrites for templates
- How to change custom post type, blog post and page permalink by template?
- add_rewrite_rule – Page Slug from “/foo-bar/” to “/foo/bar/”
- Access or edit custom generated permalinks with WP_Rewrite
- optional parameter in permalink structure
- Custom permalink structure with %postname% in front of domain name
- How to get raw unwritten querystring
- mod-rewrite rules grabs “broken permalinks”, too
- How to Use metada Value in Url and is it possible? [duplicate]
- Need to capture “keyword” added to the end of the post, even with “pretty permalinks”
- All in One Seo and Permalinks
- Already have htaccess but permalink settings not working. Getting 404
- Custom child page permalink
- Safest way to create a custom permalink
- Creating an alternate path for a page
- rewrite based slug standar post wp
- remove SLASH on single_post but KEEP on categories and parent pages
- Adding a ‘blogs’ prefix in the URL structure but only for blogs
- Extra url paths as variable
- WordPress Multisite ABSPATH and get_home_path() to check for htaccess or web.config file
- Add slug to default post permalinks ONLY
- a way to support totally different url structure
- Multiple Permalink Patterns for one page
- Pretty Filter URL
- How to change URL of my pages?
- Dynamically populate permalinks
- Converting WP Page to use full explicit paths?
- Prevent guessing slug
- Once redirected by Rewrite rules, how can WordPress know the page?
- Customize category permalinks
- Update permalinks
- Losing the original URL when using add_rewrite_rule
- Custom Permalink Base
- customize urls displayed by previous_post_link and next_post_link
- My wordpress site must be being affected by outside sources [duplicate]
- URL to an image in a post is changing when permalink is set to custom. Can I avoid this?
- Permalinks, how to show them in post
- permalinks url with woocommerce
- How to get the perfect WordPress, WooCommerce, Custom Post Type pretty permalinks?
- Blog url disappears
- Using a variable in page permalink