The standard WP RewriteRules ignore files and directories that “exist”. Example:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
This the rewrite rule set for a WP install in the “root” of a site. Notice these two lines in particular:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
These set the conditions that the file or directory being referenced must not exist. Thus, only files/directories that Apache doesn’t find get rewritten to WordPress’s index.php file.
So if Apache finds the file and can serve it directly, then it will, and WordPress will not get involved. So static links should remain as they are as long as the files are in the same place as before.
Related Posts:
- What is the best way to load the WP environment in a subdomain of my multisite WordPress install?
- Pointing multiple subdomains at the same WordPress Installation
- Integrating WordPress for blog and other content pages in a web app
- How To Add Custom Form Fields To The User Profile Page?
- Specific upload folder for PDFs in custom Post type in WP multisite
- How to delete post revisions?
- Add additional Network constants to wp-config.php dynamically
- Multisite on Windows with wildcard subdomains
- Are nested subdomains possible with a subdomain multisite?
- Anyone figured out how to use WordPress MultiSite with Domain Mapping & SSL?
- Can a multisite’s blogs be accessible from two different sub-domains?
- WP Multisite development with Mamp Pro and wildcard subdomains, not really working for me
- Can upload doc and pdf but not ppt – not permitted for security reasons
- How do I transition multiple installations to a single Multisite installation?
- How to use alias domain for multisite installation?
- SSL wildcard issue for wp multisite subdomains
- Wildcard subdomain for the same site
- Best way to develop multisite and deploy on another server?
- Benefits or Problems for using Sub-Directory vs Sub-Domain install of WP Network
- Create multiple subdomains for multi-site from a database
- How To Provide Sub-Blogs Their Own Domain Names?
- WordPress Multisite. Can domain be used instead of subdomain?
- Multisite: differences between subdomain and subdirectory mode? Can it be switch after installation?
- Removing My Sites menu from Admin
- How to set up WordPress Multisite on multiple domains without plugin?
- NGinx + WordPress Subdomain Multi with core in Subdirectory
- Prevent Deletion of Blogs
- Set subdomains live in a next step
- Transfer Subdomain site to Multisite setup
- Multisite installation combining subdomains and subdirectories
- NGINX Multisite Rewrite rules
- How to Set up a Multisite WordPress?
- How does wordpress multisite manage subdomains?
- Multisite, turn off “create new site”
- wp-admin slow in multisite
- Why can’t a WordPress network (multisite) in it’s own folder use subdomains?
- Multisite wordpress and subdomain URL collisions
- “Preview Changes” button doesn’t show changes for previously published posts/pages
- Multiple Domains and Subdomains Using Multisite Installation
- Subdomain multisite gives 404 on sub sites
- restore_current_blog() vs. multiple switch_to_blog() followed by removing $GLOBALS[‘_wp_switched_stack’]
- Add New Sub Site from the WordPress back end then in sub site options table option_value must be with https
- What are the differences in capabilities between the super-administrator and administrator?
- Testing Multisites with vagrant or Can I use multisite with only an IP address (without domain name)
- Changing Multisite URL after the subsite has been in use
- Network setup tab is not shown under Tools
- How to move theme directory but not plugins/uploads out of WordPress root directory?
- How To Modify New Sub Blog Immediately When Super Administrator Creates It?
- How do I add JavaScript that will execute on all my sites in Multisite?
- How to prevent first post and first comment on WP MU?
- How do I use different domain for subdomains in WP Multisite?
- Non-wordpress subdomains on Multisite Installation
- Subdomain and subdirectories together in one installation
- Sub-subdomain getting redirected to main domain
- Possible to create a multisite network where the main site is non-WP?
- Limit multisite/network site names to a property of the user
- On WordPress Network(multisite), Sub Blogs in Subdirectories or Subdomains? What’s better?
- Why are images not displaying?
- Replacing the default content created while the site creation
- Multisite Subdomain Using More Resources Than Others?
- Changing admin sub-domain in WordPress multisite
- Subdomain login problems
- WP Multisite Static Frontpage
- Preview posts returns 404
- Change multi-site installation from sub-domains to sub-directories
- How can I have multiple URLs pointing to single WordPress installation?
- Multisite on Rackspace Cloud (ubuntu lucid)
- Not able to access dashboard of subdomain
- How to stop unlink images when remove a site or user
- What should I do? A multisite, a single website or many websites? [closed]
- Wordrpess Subdomains (Multi-Site) without Wildcard
- How to Redirect login User with Mapped Domiain Primary blog Url to Original Sub-site Url
- Can I use two different domain names with a WordPress multisite network?
- WP MU – Accessing ‘Domain-Mapped’ WP-Admin with a subdomain
- Multisite setup on IIS with subdomains
- Multiple homes for multiple languages [closed]
- WordPress multisite installation broke menu links
- Icon font not working on subdomains of multisite
- WP Multisite – domain mapping to domain.com and separate site to domain.com/help
- Login on Multiple Sub-Domains without Multisite
- How to run a subdirectory multisite install under a subdomain
- Child Site doesn’t appear in the Network menu
- Hosting a seperate wordpress project on localhost
- WordPress Multisite/Network – How to use a subdomain as main blog and subdomain for child sites
- Multisite development environment
- WPMU Development Environment
- turn single domain off
- Redirect subdomain in Multisite installation?
- How to host blog on separate domain from main site
- problem with main site (root domain) redirects to subdomain (multisite)
- Enable wildcard in a WordPress Multisite (Sub-Domains)
- Multiple wordpress installations that shares WordPress & Theme but with separated database
- How to redirect one page on the subdomain
- WordPress Multisite Wildcard Subdomains on Plesk
- Making 2 WordPress sites mutually searchable and more
- Pushing stored procedure to a multisite database in WordPress
- How does WordPress determine which multisite the user is on from the URL?
- Start with multi-site feature now or later?
- Multisite multidomain
- WordPress Multisite Question