I was able to get it working by adding the following two lines to my .htaccess, right before the rest of the other WordPress rule
RewriteCond %{REQUEST_URI} ^/map/(.+)$ [NC]
RewriteRule ^(.*)$ /map [L,P]
Bottom of my .htaccess with the rules looked like this:
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/map/(.+)$ [NC]
RewriteRule ^(.*)$ /map [L,P]
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
Related Posts:
- Redirecting WordPress /.htaccess / HSTS / SSL
- Redirect home to another page with htaccess
- How to redirect URL with subfolder to the same URL but without subfolder?
- reducing number of URL Redirects and increasing speed
- URL masking of subdomain to main domain using .htaccess
- Redirect only PDFs in different folders?
- How do I skip wordpress’s 404 handling and redirect all 404 errors for static files to 404.html?
- Disable WordPress URL auto complete
- Disable ONLY URL auto complete, not the whole canonical URL system
- Non-WordPress page in subdirectory under WordPress page
- How to setup 301 redirects for multiple query string URLs?
- How to redirect url requests to https? [closed]
- Htaccess redirect from ‘/%postname%.html’ to ‘/%postname%’
- Redirecting old permalink to new one
- Specific URL has 403 Forbidden status code
- Stop unwanted WP redirection to new url
- Problem to redirect custom page using htaccess
- How does WordPress redirect to WooCommerce shop page? [closed]
- htaccess redirect not working
- htaccess wildcard redirect misses some URLs
- How to do 301 redirect to Sub page using htaccess file?
- WWW to non WWW redirect effects on load speed
- Does WordPress automatically redirect url without parent slug?
- How to redirect visitor to a custom URL using PHP code in functions.php
- Deny access to a path (give 403 or 404 response)
- htaccess 301 redirect http to https doesn’t work
- 301 Redirect Loop
- Headless WordPress redirect front-page to login page [closed]
- Use htaccess to redirect WordPress to static website in a subfolder
- 301 Redirect To Post ID
- set up 301 redirect within wp-content/uploads/ directory of a WP site to a new image URL
- add_rewrite_rule fro html to another url not working
- Changed permalink structure. Need help with redirecting old posts
- Redirect from sub-directory to root – New WordPress 5.2.3 Set up
- How to add new redirection on wordpress site
- .htaccess rule to redirect old URLs to new structure [closed]
- .htaccess Redirect
- What is the right way to redirect all traffic to HTTPS?
- Site loads very slowly (4-5 minute load time)
- URL redirect problem
- How can I redirect a URL to an anchor link while maintaining the URL?
- How to remove duplicate and unnecessary part in a url using htaccess and regex?
- Redirect homepage with htaccess, except if I enter the link adding “/home”
- 503 Service Unavailable error was encountered
- SSL and www to non-www redirection works only on homepage – WordPress
- Wildcard forward all posts and pages with few exceptions
- How to redirect to clean links with this code
- Redirections and rewrites to subdomain
- Built-In Postname Redirection vs Hard Redirects in relation to SEO and performance
- How To Fix 404 errors caused by Google Indexing WordPress In Subdirectory
- WordPress keeps redirecting subpages without http to https homepage after switch
- How To Fix A Redirect Chain
- 301 Redirect all page and post urls from .html to /
- Redirect “http://old.net/category/postname” to “https://new.com/postname”?
- 301 Redirect Old URL to New WordPress Page
- How to remove the [L] Flag for WordPress index .php mod_rewrite
- ReDirect subfolder link to another sub-folder and force SSL
- Redirect user to original url after login?
- What is the most efficient (ie. less server intensive) way for 301 redirects?
- Redirect non existing page to frontpage
- How do I do a redirect to WordPress permalink with post id via htaccess?
- store URL global before we redirect
- Will deleting WP’s code in .htaccess cause problems?
- How can I redirect users on the new 404 page without plugin?
- How do I write a subdomain redirect?
- How can I redirect a request to the site root using htaccess, if there’s not a specific cookie set?
- How to fix automatic redirects?
- htaccess redirect from specific urls of my site to the homepage
- HTTPS to HTTP rewrite rules not working as expected
- get_bloginfo prints IP instead of url
- How to redirect multiple subfolders back to root domain?
- How to redirect non existent pages/posts in wordpress using htaccess
- How do I Redirect Tags from Old Joomla Site to New WordPress Site?
- htaccess 301 Redirect not working from aspx to new WP permalink
- Mass .htaccess URL Forwarding
- URL redirection
- WordPress not linking correctly with .htaccess redirect to subdirectory
- URL redirect regular expressions redirecting all after first viriable
- WordPress site not forcing from http to https instead getting redirected too many times
- How to make front page temporarily show content of internal page
- How to get user details by name
- Redirect HTTP request to HTTPS request
- How to disable WordPress URL autocomplete / recognition?
- using wp_rewrite but keep the original url in the address bar
- home page redirect loop after update to 4.8
- Cannot get 301 redirection in htaccess to work (either Redirect or Rewrite)
- Resolving the too many redirects on wordpress
- 301 Redirects when change URL in WordPress database
- What’s the best way to redirect to a new wordpress website?
- .htaccess not working after page slug change
- Redirect old .html URLs to a new installation in a subfolder
- different CNAME to corresponding subfolders
- Subpages return 404 server error
- WordPress 302 Redirect to Holding Page
- Rewrite rule for incoming urls
- WordPress on a subfolder but accessible from root
- Can I redirect the http request towards an old folder to the homepage using .htaccess file? [closed]
- Redirect a WP to another with all URL
- Other pages fine but wp-admin showing ERR_TOO_MANY_REDIRECTS Error
- redirect the root of a domain, while leaving the www version unredirected