Strip the preceeding forward slashes from your rules:
Example (incorrect)
RewriteRule ^/css/(.*) /wp-content/themes/themename/css/$1 [QSA,L]
Example (correct)
RewriteRule ^css/(.*) wp-content/themes/themename/css/$1 [QSA,L]
All rules (correct)
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteRule ^/index\.php$ - [L]
RewriteRule ^css/(.*) wp-content/themes/themename/css/$1 [QSA,L]
RewriteRule ^js/(.*) wp-content/themes/themename/js/$1 [QSA,L]
RewriteRule ^img/(.*) wp-content/themes/themename/img/$1 [QSA,L]
RewriteRule ^font/(.*) wp-content/themes/themename/font/$1 [QSA,L]
RewriteRule ^plugins/(.*) wp-content/plugins/$1 [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Related Posts:
- File and directory permissions
- Place static HTML files in path below WordPress page
- .htaccess for wordpress inside another wordpress install
- Isolating WordPress to a subfolder
- Permalinks not working on second wordpress installed in a subdirect
- Move wordpress to folder without changing urls
- How to restrict access to wp-content, wp-includes and all sub-folders
- Redirect main domain to subdirectory
- Exclude subfolder from WP-redirect works with html but not php files
- Can’t Access Subdirectory
- Fixing custom 404 pages broken by WordPress in a subdirectory
- WP install in sub-dir white screen
- Drawbacks to using Options -Indexes
- WordPress installed in root, need second in subdirectory with different domain
- htaccess, site and staging in subdirectories
- External content won’t load in iframe in Safari
- Disable directory browsing of uploads folder
- I have a page using a pretty url and a mod_rewrite rule matching it. I expected it to give an error but it’s working. Why?
- Creating a copy of a website in a subdirectory, wp-admin redirect problem
- Access sub-domain when root public_html is protected with .htaccess password
- Cannot access subdirectory subpages
- How to execute WordPress as though it is in the root folder while it is installed in a subdirectory?
- WP Codex answer incomplete? Put WP in subdirectory. .htaccess change required
- Install second wordpress in root subfolder, Error 404
- Remove subdirectory from links
- How to properly give WordPress its own directory
- htaccess- to hide subdirectory slug only from the post
- How to direct users to a subcatalog
- Installing wordpress on subdirectory 2 levels down
- Cannot Override WordPress 404 for a Sub-Directory
- htaccess mod_rewrite not working
- .htaccess and virtual host configuration for WP in its own directory
- Giving WordPress it’s own directory and using .htaccess Directory Index
- Permalink Issues by Installing WordPress in Subdirectory / Subfolder
- WordPress + Magento .htaccess ReWriteRule Issue (www vs. non-www)
- index.php not loading in main folder of wordpress
- Admin-Ajax.php, SSL, Non-SSL
- WordPress site displaying 404 for any page apart from index
- How to avoid wordpress permalink rules to inherit in a sub-folder
- Cant block wordpress readme files
- 404/500 error on /wp-json
- .htaccess for wordpress in separate folder
- WordPress mod_rewrite is canceling/overwriting my other mod_rewrite rule
- Blocking access to wp-login via htaccess not working
- Cannot mask WordPress page URL using .htaccess
- Question with loading 403/ 404 error pages and htaccess
- Why does a directive only work when it is included inside WordPress directives?
- Restricting user login by IP address
- .htaccess password protect all but one page
- New installation can’t be found due to htaccess of the original non-WordPress site
- How to fix category url 404’s after category permalink change
- WordPress: Adding Security
- How can I fetch the content of a post of my wordpress domain from an other domain?
- Redirect Specific Wildcard Subdomain to a specific URL on another domain
- WordPress not seeing .htaccess rules
- create a static folder independent with WordPress
- WordPress site not working after move
- Giving to wordpress it’s own directory cause login loop
- WordPress sites in subfolders
- Admin Panel Slowdown After SSL Verification
- WordPress category with 404 error
- where to add redirection rewriterule in .htaccess file?
- Trouble adding directory rewrite to htaccess under wordpress [closed]
- How do I apply friendly URL permalinks to a custom WordPress template?
- Forcing HTTPS with WordPress on AWS
- WordPress Example Code for Blocking Referrer Spam
- create virtual subdomains for a bunch of urls on a site via .htaccess
- htaccess getting overwritten over and over = 404 error
- htaccess problem not being able to overwrite previous rules
- wordpress blog displaying blank pages [closed]
- Relative links stop working after moving wordpress site from hosting to localhost
- WordPress site blacklisted by Google about .htaccess [closed]
- How to redirect the frontend of a WordPress site (only)?
- How to fix .htaccess corrupted
- get_template_directory() returns wrong address on VPS
- All navigation links on website redirect to same page
- WordPress is removing trailing slash
- Htaccess file reset automatically how to fix this issue
- Clone WordPress for testing on localhost (with Fiddler)
- Force a 403 response to xml file in WordPress
- Redirect files in uploads directory if WordPress user not logged in
- Redirect wordpress site to www from non www on wordpress server
- Update htaccess in several WP sites at once
- Pretty Url not working on the server
- How to use slug with subdomain?
- After moving WordPress to its own directory, login doesn’t work
- Reversing domain ‘sharding’ with htaccess
- WordPress Intercepting Requests To A File In Public HTML
- Htaccess remove dates from root site but not from subdomain
- .htaccess home configuration
- adding a rewrite rule in wordpress functions file
- Multisite permalinks for subfolder wordpress installation
- Missing visual editor after placing a redirect rule into the .htaccess file
- Redirect not working
- Permanently Redirect WordPress Subfolder Blog to Subdomain on Another Server
- WordPress site not redirecting properly
- .htaccess for Subdomain and Subfolder w/SSL
- Why my wp site always redirecting to the old website path..?
- Hiding wp-config.php via .htaccess on an install installed in another directory?
- .htaccess seems to be required but I can not find it