Maybe it´s easier to output some content from a different page/post in your search template which got a fixed slug.
I for example use this:
$page = get_posts(array('name' => 'welcome'));
if ($page)
{
echo '<h1>'.$page[0]->post_title.'</h1>';
echo '<p>'.$page[0]->post_content.'</p>';
}
This fetches the post with the slug “welcome” and displays its content. As I don´t use a single post display this works fine for my special case.
Maybe it can help you, too.
Related Posts:
- Pretty permalinks for search results with extra query var
- Unique URL Every Time
- Custom slug in front of search URL
- How do i change the search permanent links
- wp_sanitize_redirect strips out @ signs (even from parameters) — why?
- add_rewrite_rule not working for language specific characters
- Changing the search URL?
- NextGEN Gallery Lightbox – Social Share URL Redirect
- WordPress redirects non-existing url to existing ones – how to disable
- My WP_options db rewrite_rules Does Not Work
- Can I change default registration link (without htaccess)?
- Redirect HTTP to HTTPS for all sub domains (blog posts)
- How to remove trailing slash from root WordPress folder?
- Rewrite: WordPress URL rewrite on Search
- Force search form to go to clean url without multiple redirects
- WordPress search rewriting
- Rewrites: .htaccess or wp_rewrite for bulk 301 changes?
- Change /search to /somethingelse
- Page not found: Custom search form with a custom search page
- WordPress how to prevent URL encoding in URL of taxonomy terms
- Changing the wordpress default search url to something like – …example.com/search?query=keyword
- WordPress rewrite front page url
- How to change search page url so that it still returns a page when there’s no search query specified?
- Redirect empty search to another page
- How to add Search URL parameters to a Page Template Page for Custom Post Type
- Why is there a 404 on page 2+ for my search page?
- Rewrite URL for Search + Special Characters / Umlaute
- URL rewrite before template_redirect called
- Use Parent Pages for URL Structure without Landing Page
- Redirect if string found in URL
- Change the search URL
- How to turn off searching from URL and go straight to 404 page
- How to create custom URL routes?
- How do you create a “virtual” page in WordPress
- How to create a front end user profile with a friendly permalink
- Use a template file for a specific url without creating a page
- Using the Rewrite API to Construct a RESTful URL
- Does WordPress keep track of a post’s URL history and provide automatic redirects?
- Change the “page” slug in pagination
- Understanding add_rewrite_rule
- Override default url for author pages?
- web.config conflict on IIS
- Rewrite Slug for CPT Archive Pages to Plural Name of Slug
- Change author base slug for different roles
- Masking wp-content/themes/name/images to just images directory using htaccess
- Two (or more) parallel (sub-)TLDs that are retained when surfing the site / dynamically set the site address?
- Using custom/dynamic “slug” for a page
- How to make pages slug have priority over any other taxonomies like custom-post, post or category
- Rewrite rules not working in WordPress
- How to retrieve $_GET variables from rewritten URLs?
- Dynamic Endpoints
- Passing parameters to a custom page template using clean urls
- rewrite rules and querystring
- Adding rewrite endpoint breaks static front page
- How to add custom rewrite rule to .htaccess?
- How do I remove a rewrite rule?
- How do I add a server-independent external rewrite rule?
- Multiple endpoints to same page
- Problem with add_rewrite_rule and pagination (paged and page query_vars)
- Use subdomain for certain urls
- Custom Permalinks for Blog Posts Only
- generate_rewrite_rules (action) vs add_rewrite_rule (function): which one is preferred?
- Detect page type by url (Archive, single, page, author,…)
- Rewrite URL – how to do a SEO-friendly Unicode custom URL?
- I want to create a custom slug in WordPress and output JSON. How do I do this?
- How to make a category page the blog home page?
- add_rewrite_rule: $matches var not replaced by captured value
- Can I call a custom plugin with a direct URL
- How to show the same content on multiple URLs?
- Display posts with author in the url with custom post types
- Custom rewrite rules for pages
- Rewrite default post type
- Custom permalinks with NextGEN Gallery
- Clash of the rewrites
- Using a page template without a page
- External/non-WP rewrite rules
- How-to add rewrite rules to point the uploads folder to a subdomain
- Rewrite Rules for Multiple (more than 2) Taxonomies
- Create built-in pages without creating actual pages
- How to seamlessly redirect between different archive and singular slugs?
- Is the SEO plugin necessary?
- Can ‘numberposts’ be passed in the URL query string?
- How to add dot(“.”) in post slug
- How to prevent redirection to max 2147483647 for larger values of the page query variable?
- add_rewrite_rule not loading correct page nor getting variables
- Overwrite rewrite-slug of built in post-type ‘post’
- Preserving $_GET parameter while using custom Rewrite Rule
- How to change default page slug?
- Query Vars for the Homepage?
- Disable wordpress pagination URL rewrite for specific page
- How to use Post Custom Metadata in Post Titles and Post Permalinks
- Using WordPress with Apache behind an nginx reverse proxy
- Handle category name URL rewrite before different post type slugs
- Using plus (+) sign instead of space (-) in WordPress URL
- Rewrite url for custom post type
- add_query_vars and add_rewrite_rules
- How to remove “admin.php?page=” from wp-admin using .htaccess?
- add_rewrite_rule() not playing nice with child pages
- WordPress URLs without posts
- rewrite_rule() not preserving the query string