Native WordPress rules are designed to ignore any existing files and directories, including arbitrary PHP scripts. This is literally what this part of directives mean:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
So under normal circumstances WP just shouldn’t be involved with your request in any way. You may have some other rewrite rules interfering, possibly from a different place in web server configuration.
Related Posts:
- How do I skip wordpress’s 404 handling and redirect all 404 errors for static files to 404.html?
- How do I skip wordpress’s 404 handling?
- Why specific file directory fails to redirect but its parent folder succeeds?
- WordPress blocking/preventing viewing of .cgi file in subdirectory [closed]
- Deny access to a path (give 403 or 404 response)
- Built-In Postname Redirection vs Hard Redirects in relation to SEO and performance
- How can I redirect users on the new 404 page without plugin?
- How to redirect an old page url to the homepage
- How to redirect non existent pages/posts in wordpress using htaccess
- Subpages return 404 server error
- WordPress subfolders htaccess bypassing the root htaccess RewriteRule
- How to Redirect Url to homepage?
- WordPress Redirect All HTTP requests to HTTPS via .htaccess
- Old blog/ and blog/feed/ URLs not working after moving blog to top-level via .htaccess
- Non-WordPress page in subdirectory under WordPress page
- Force HTTPS using .htaccess – stuck in redirect loop
- 301 redirect not working through .htaccess
- How to redirect url requests to https? [closed]
- 302 redirect instead of 301 after switch to HTTPS
- Problem to redirect custom page using htaccess
- htaccess wildcard redirect misses some URLs
- Redirect from https to http or from http to https? [closed]
- Redirect too many times htacces switching to https
- How to do 301 redirect to Sub page using htaccess file?
- Redirect feed to 404 page
- Check if post is in draft or pending review?
- Can WordPress redirect to a “similar page” in case of 404 error
- Hacked website redirect, only on desktop, help with restoring it [closed]
- How to hide that a certain non-WordPress directory exists on the server?
- Redirect “any page/page/number/” to “any page”
- How to create a 301 redirect that doesn’t apply to subsites
- WordPress multisite htaccess redirection to new domain
- https redirect (with .htaccess) redirect loop
- htaccess 301 redirect http to https doesn’t work
- Redirecting old post url to 404 in wordpress using htaccess
- How to redirect subcategories to a page?
- Use htaccess to redirect WordPress to static website in a subfolder
- Redirect blog archive into certain format
- CNAME vs A Record for WWW – with 301 Redirects
- How to publish new posts/pages in root instead of subfolder, but keep old structure in place?
- forward domain name to particular page?
- Defining a custom 404 for non-WordPress parts of site
- Issue with htaccess redirection in WP Multisite
- Redirect from sub-directory to root – New WordPress 5.2.3 Set up
- How to redirect URL with subfolder to the same URL but without subfolder?
- htaccess 301 Redirect not working for WordPress site
- What is the right way to redirect all traffic to HTTPS?
- Custom Permalink
- Site loads very slowly (4-5 minute load time)
- WordPress Auto-Redirecting on 404
- How can I redirect a URL to an anchor link while maintaining the URL?
- I need to redirect an entire subdirectory in WordPress to the homepage – is this correct?
- 503 Service Unavailable error was encountered
- SSL and www to non-www redirection works only on homepage – WordPress
- Redirecting old permalink structure to new in htaccess
- WordPress keeps redirecting subpages without http to https homepage after switch
- How to remove the [L] Flag for WordPress index .php mod_rewrite
- ReDirect subfolder link to another sub-folder and force SSL
- What is the most efficient (ie. less server intensive) way for 301 redirects?
- How to forward all requests starting with a specific folder name to the same folder
- I used single quote to design HTML of my WordPress blog. Now site redirects to index.php everytime than page.php or single.php
- How to redirect a wrong search on my wordpress website to the error 404 page?
- Issue redirecting ‘blog’ to ‘news’ in WordPress using .htaccess
- Will deleting WP’s code in .htaccess cause problems?
- Use two different index pages
- How can I redirect a request to the site root using htaccess, if there’s not a specific cookie set?
- Redirect old query string URLs to new add_rewrite_rule URL
- redirecting an entire WP site from one top level domain to another
- 404 redirect based on url
- Is there way to redirect all blog post pages to Home page?
- get_bloginfo prints IP instead of url
- How to redirect multiple subfolders back to root domain?
- Temporary Infinite Redirect Loop
- A question about .htaccess
- How to Redirect WordPress domain.com/?anyword to 404 Page?
- ErrorDocument 410 gives me back a 302 header
- Redirect to /404/
- Error in /blog redirection – ubuntu default WP installation
- WordPress not linking correctly with .htaccess redirect to subdirectory
- 302 redirect *.at/site redirecting to .comsite
- How to create multiple Rewrite-Rule for various site in single htaccess?
- Loading /wp-content/uploads/site as /site/
- Redirect only PDFs in different folders?
- home page redirect loop after update to 4.8
- Cannot get 301 redirection in htaccess to work (either Redirect or Rewrite)
- 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
- Debugging a redirect loop affecting only certain pages
- WordPress on a subfolder but accessible from root
- WordPress redirect from one directory to another but exclude wp-admin and wp-login.php
- 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
- Redirect ignore last URL segment
- Other pages fine but wp-admin showing ERR_TOO_MANY_REDIRECTS Error
- Forcing header cache control in 404 pages
- redirect the root of a domain, while leaving the www version unredirected
- redirect to 404 page
- Redirect old homepage to the new one within the same site
- Redirect certain 404 pages to parent page