A quick tweak to your regular expression. You are currently capturing only letters before the first /
add_rewrite_rule('^csearch/(.*)$', 'index.php?page_id=23&filter=$matches[1]', 'top');
Note when parsing this that you may or may not have a trailing slash at the end of your value of filter.
Related Posts:
- Old blog/ and blog/feed/ URLs not working after moving blog to top-level via .htaccess
- RedirectMatch and Redirect interfering with each other
- url keeps redirecting to a page
- Why specific file directory fails to redirect but its parent folder succeeds?
- Redirect home to another page with htaccess
- Redirections and rewrites to subdomain
- Image URLs not redirecting properly
- Create a permalink to a pdf?
- Custom URL routes
- Redirect old query string URLs to new add_rewrite_rule URL
- HTTPS to HTTP rewrite rules not working as expected
- Is it possible to change redirect template through a shortcode?
- ErrorDocument 410 gives me back a 302 header
- Redirect *.php to path using web.config file
- How to create multiple Rewrite-Rule for various site in single htaccess?
- Cannot get 301 redirection in htaccess to work (either Redirect or Rewrite)
- htaccess and redirect to new url using regex
- Rewrite rule to redirect to a particular filename.php
- PHP header(Location: …): Force URL change in address bar
- php refresh current page?
- Host the wp-admin on another domain?
- My wordpress multisite homepage redirects to signup page
- Login redirect to previous page
- WordPress install enters an infinite loop
- WordPress HTTPS redirect loop
- Using `auth_redirect` : keeps asking me to login even when I’m logged in
- How can I move/redirect single blog posts from one blog to another?
- How do I skip wordpress’s 404 handling?
- Redirecting to home-page when saving any edited code
- Check if post is in draft or pending review?
- Disabling the X-Redirect-By response header
- How to hide that a certain non-WordPress directory exists on the server?
- Disabling HTTPS redirection for migration
- Redirect deleted posts to category archive
- Can WordPress pass through a call to an external API and return the result directly to the client?
- Redirecting old post url to 404 in wordpress using htaccess
- How to redirect subcategories to a page?
- CNAME vs A Record for WWW – with 301 Redirects
- Any action in wordpress redirects me to home page
- Handle regular expression based redirects without .htaccess
- Adding rewrite rule dynamically for search results redirecting to 404 URL
- Redirect some of the languages on a multi-language site
- Why is there a status message “302 Found” on top of the site?
- Redirecting to new URL structure and 301
- wp_login_form redirect problem
- Redirect from ip to domain
- How can I redirect users on the new 404 page without plugin?
- How do I write a subdomain redirect?
- How does WordPress format the url on a 301 when a trailing slash is missing?
- Redirection on domain name
- Redirect only Blog posts to new
- htaccess redirect from specific urls of my site to the homepage
- Can’t make redirect in WordPress
- Unwanted slug in my website
- Changing permalinks and redirecting urls
- htaccess 301 Redirect not working from aspx to new WP permalink
- Mass .htaccess URL Forwarding
- How to point a public URL to internal (hidden) server with all links following.
- Redirecting simple big problem
- Wp Remote get with manual redirect
- Redirect posts to new domain
- Add base folder to CPT and 301
- How do I redirect the browser to 404 page, if no posts are found in home page
- Redirect after the registration
- wp_logout_url redirect not working
- How do i make WordPress return 404 instead of redirecting on misspelled page?
- how to redirect non logged users to login page and redirect to another page with saved data?
- How to automatically redirect category pages (301) when changing the location of a category in the hierarchy
- 301 Redirects from old WordPress domain
- Unexpected: WordPress redirects to the WP_HOME/WP_SITEURL value
- How to redirect user to Referrer Page using wp_signon in Custom Login Page in WordPress
- How to make front page temporarily show content of internal page
- How to get user details by name
- redirect after account activation for forum using bbpress and buddypress
- redirect_to ignoring the SSL
- Resolving the too many redirects on wordpress
- One set of Child Pages redirecting to Home page?
- Redirect wordpress website URL into other link
- Redirect old .html URLs to a new installation in a subfolder
- Serve wordpress regardless of the cname
- Pass original URL through after login redirect
- redirects for removed/deleted woocommerce products
- Headers already sent error after upgrading wordpress to 4.2.2
- How to block direct access to files upload in edd folder
- Blog post URL redirects to a Page URL who’s slug is a prefix of the post slug.
- Blog posts redirecting to random 404 pages
- Subpages return 404 server error
- WordPress 302 Redirect to Holding Page
- Accept (once only) policy page on login
- website is sending people to wrong address
- Why my htacess rewrite return 404?
- woocommerce shop page Redirect Help
- problem redirecting users to page on login
- Create a 301 Redirect automatically when adding %category% in the permalink
- Is RewriteMod for WordPress site: site.ro -> site.com/?lang=ro possible?
- How can I redirect the user to the page they were on when they clicked “Lost Password” using “retrieve_password_message” filter
- WordPress post slug redirection
- Are post permalinks and wp_redirect() redirections saved in browser cache?
- Redirect after registration and auto login is not working
- Redirect after sign up with woocommerce form with role choice [closed]