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
- Masking wp-content/themes/name/images to just images directory using htaccess
- Using custom/dynamic “slug” for a page
- How do I remove a rewrite rule?
- Use subdomain for certain urls
- Can I call a custom plugin with a direct URL
- Display posts with author in the url with custom post types
- Clash of the rewrites
- 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
- Custom rewrite rules are sending everything to index.php
- WordPress Network on IIS7/SQL Server – Rewrite Issues
- Custom comments
- Add .html extension to only one page in my WordPress site
- Migrating a page to be an article
- Rewriting rules: difference between ‘init’, ‘rewrite_rules_array’, ‘generate_rewrite_rules’?
- Multiple Permalinks for Same Post
- url rewriting for most recent post
- Is there a way to create alias without using htacess, permalinks or delving into code?
- Remove “/page/1” from the URL
- hard flush_rewrite_rules() not regenerating .htaccess
- Nginx rewrite rules
- Use custom template on certain URLs
- Rewrite Rules Are Redirecting and Not Passing VARs
- custom template rewrite
- add_rewrite_rule fro html to another url not working
- Adding rewrite rules directly to .htaccess file
- How do I redirect to a non-www version and make it the default URL?
- How to create a profile page for specfic / custom user role members?
- A clean custom rewrite rule for weekly archives
- I want to add a new tag to WordPress URL permastruct
- QSA Rewrite Rule
- rewrite wordpress page url for seo friendly query strings
- ReWrite rule for files of a previously standalone blog moved to network
- Fixing custom rewrite rule
- URL renaming issue
- Best way to trigger rewrite rules
- Redirect htaccess [closed]
- virtual page using url parameters to solve facebook sharing issues
- Clean Custom URL for Serach + Custom Taxonomy
- Hard to find a good rewriting rule
- Mobile version and URL Rewrite
- How do I make WordPress revise an .htaccess file a certain way?
- How are rewrite rules applied in WordPress?
- How to change an existing wordpress page rewrite rule?
- Show index.php template instead of 404 page template
- Rewrite rules – page does not exist
- WordPress dynamic page handle in theme
- Allowing multiple URLs for same Post
- How to create dynamic URLs on WordPress?
- Translatepress taxonomy and custom post type root FIX
- Issue with custom rewrite for products and permalinks
- Prefix only some posts with a custom prefix
- Rewrite rule not redirecting correctly
- Dynamic content and rewrite URLs
- Rewriting / Redirecting request outside wordpress
- How to reset WP page url with deleting the variables
- Remove Page Slug from URL
- Needed to change slug to access page
- How to create short urls for sharing and downloadable content?
- Rewrite rule is not working
- How to stop WordPress creating URLs that don’t exist
- List posts with same tag?
- Rename page URL
- Help with url rewrite
- Use add_rewrite_rule to change subpage url
- How to add unique auto-increment number on url before slug