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
- Redirect user to original url after login?
- Redirect to dashboard after login
- Make a video post redirect to next post after completion
- WordPress Redirect based on the prescence of a cookie
- Random and Erroneous WordPress Redirect
- Redirect Old domain & posts to new domain homepage
- Redirecting users to referrer page after logging in using custom login form
- Remove lost password form and URL
- how to do logout redirect to current url
- htaccess redirect – directory and subpages to a single page
- Plugin for conditional redirect
- https multiple redirects
- Redirects from Tumblr to new WP
- How to exclude a directory from WordPress permalinks in a Multisite environment?
- Why does multisite bypass WordPress for wp-content, wp-admin, wp-includes and .php files?
- Redirecting to old domain, tried everything, nothing works
- WordPress redirecting to 127.0.0.1 when accessing the site from a remote device
- Stop wordpress redirecting www to non-www
- WordPress Global Redirect
- Why does wp_redirect strip out %0A (url encoded new line character) and how do I make it stop?
- WordPress url incomplete redirects to first article with that name
- Create a page that automatically redirects to latest post of a specific tag/category?
- How to make wordpress folder (/wordpress) redirect to /?
- Changing domain
- Redirect htaccess does not work correctly with my new wordpress site
- Redirecting deleted posts url to another WordPress install
- Taxonomy Rewrite Rules Redirecting Instead of Masking
- Redirect – remove custom query string
- Custom redirect user after login based on metadata
- wp_redirect () doesn’t work in nginx?
- Add Username to URL for redirect
- Adding query string parameters to URL with same name as custom post type gives 404 error
- Display Freebie Page Content only if Referrer is from Form Page
- Dynamic redirect
- Create header.php redirect in WordPress and with WPML
- simple wordpress form redirection
- Forced Redirect on a server migration
- Site Address and WordPress Address settings when using a load balancer
- Cannot install wordpress, /wp-admin/install.php, inproper redirection [closed]
- Prevent “/login” to redirect to “/wp-login”
- Redirect home resets (qtranslate) language
- How to redirect logged out users to specific page?
- Redirect certain pages if user logged in
- Redirect to post_id?
- wp_login_form redirect
- How can I disable redirect domains?
- When i try to enter subdomain i’m redirected to main domain
- Change my URL from https://www.domain.com to https://domain.com
- 301 all old pages to new location
- Use a 301 to Redirect any 404 from at the blog post level to the blog archive
- How do I share a site only to one User at the time? Please help π₯Ίπ
- Need to redirect home page only on Woocommerce site if user logged in
- Redirect to dashboard user once you click on Publish page
- Author Archive Page redirecting issue
- Understanding Redirects
- Random redirect to wp-admin/install.php
- Changing auth_redirect() page
- Remove part from dynamic url and redirect
- Why https://www. SUBdomain is redirected by WP to https://MAINdomain
- Page editing in backend redirecting to 404 page not found with url /post.php
- Redirect based on referer using Advanced Custom Fields
- Redirect User to Specific Page
- How to redirect a referal url to a signup page?
- How to modify the WordPress comes with redirect
- Conditional redirect on login using referring URL
- On login redirect to different homepage if user is using a mobile
- Multisite hide subdirectory
- WordPress update 4.4.1 redirect loop
- Redirecting Issue
- How to redirect correctly a root domain to a subdomain in a subfolder?
- 301 redirect for wordpress permarlink
- login_redirect for Mobile Web
- Need rewrite for URL with specific string
- Redirect to 404.php from single.php
- How to make my homepage automatically redirect to an external website?
- How does the flow of htaccess files in sub-directories work
- Redirect to a subdirectory frontpage using without using a WP plugin- what files to edit, and how?
- How to Show different page URL instead of default home page URL
- How to Redirect Url to homepage?
- 404 Not Found with All Cloaking plugins
- Stopping media file redirects
- Post Migration Site Migration Redirects All Known Solutions Attempted