Ok this probably has a superfluous few lines but this works for me:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^static/(.*)$ /wp-content/themes/MYTHEME/static/$1 [R=301,NC,L]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Related Posts:
- WordPress API Menu/Submenu Order
- Can a theme be built in React?
- WP REST API only returning partial list of users
- Edit srcset and sizes attributes in Gutenberg image, cover and gallery – blocks
- Slow REST API calls on self-hosted WordPress [closed]
- How Do I Programmatically Force Custom Permalinks with My Theme?
- Google Maps not displaying in wordpress using Google Maps Javascript API
- Cache Busting using htaccess Rewrite rule?
- How Can I Create a List of Values to Be Iterated Through via WordPress Customization API?
- How to write .htaccess dynamically? [closed]
- Obtain full v2 REST url?
- Why aren’t tags and categories added in post request to WP Rest API
- Allow REST API over HTTP, the rest of the site forced to HTTPS
- wp_remote_get times out on api request but jquery GET and postman work?
- Multisite theme path rewrite using .htaccess
- I used single quote to design HTML of my WordPress blog. Now site redirects to index.php everytime than page.php or single.php
- Why WordPress AJAX returns undefined however it works fine when I add static url instead of dynamic function?
- how to use nimble-API and Display data?
- How to register dynamic settings in WordPress Customizer?
- “The REST API did not process the context query parameter correctly.” Custom theme conflicting with Media Library
- hide theme files for admin beneath root
- How to get custom logo with REST API instead of get_theme_mod();
- Can I set rest API endpoints from within a theme?
- Woocommerce REST API for my account & checkout process
- Different WP Rest API custom endpoints across different themes
- Extending the API I created to return category names
- Duplicate WordPress site to subdirectory but use same db?
- multi-language multi-site with REST API
- External api call using wordpress
- How can I enforce user to use Application password to generate JWT token? [closed]
- Why is wp_head() creating a top margin at the top of my theme header?
- How To Add New Option Types To Option Tree?
- How to limit wordpress menu depth in admin panel
- How can I set image sizes and still have responsive images using the srcset attribute?
- Retrieve all users from wordpress database via REST/JSON API
- Possible to “Attach” images to multiple posts without inserting or uploading twice?
- Trigger Customizer saving process with Javascript only
- Remove settings if theme is deleted?
- Comment form not display properly?
- How to add menu support to a theme?
- Registering Sidebars and Sidebar Widgets. Sidebar Widgets Not Displaying
- Extend walker – navigation, adding data attribute to a tag
- How to display category specific post content on a page
- Enqueued Stylesheets Effecting Admin Styles
- Gutenberg Reusable Block as part of WordPress Theme page
- Why is $GLOBALS[‘content_width’] needed if site is responsive?
- Does WordPress count as a means to learn web development? [closed]
- current-menu-item class not working
- Prevent theme from activating [duplicate]
- Messing up with transient API – getting flushed on refresh
- Correctly using wp_head()
- Theme development question regarding layouts
- Cannot figure out how to overwrite files in child theme
- My Admin bar covers my sticky navbar [closed]
- Responsive embed for the video shortcode
- Single Page Design, Storing in Theme Options
- How to append to menu items selectively
- Working with a WP Starter theme
- How to modify WCMP Rest API response?
- tag is being auto inserted
- Scroll to position on page for category pages only — woocommerce
- How remove render blocking css from wordpress when you build a theme?
- How to: JQuery multiple wordpress media uploader buttons in the same options page?
- Displaying details of a post in a sidebar
- How to upload/update theme from local – bitbucket – shared hosting?
- Multi-page posts: A subdirectory for each post?
- Remove “You are using WordPress 3.2.1” from Right Now Dashboard Widget
- How do I get the trackback count of a post in wordpress without writing an SQL query?
- Where do files uploaded via Media Manager get stored in MU?
- Change frontpage content via WordPress
- How to Have a Pure HTML Sub Directory In WP Site
- How to add menù section to my WordPress template?
- customize theme with get_template_part() [closed]
- Loading issue on Chrome for my WordPress theme
- How to add post meta fields to an article’s as meta elements
- Callback Function Not Firing On Selection In Media Uploader
- tag__in does not return posts
- Add content after get_header
- Filter didn’t work on content class (hybrid_post_attributes)
- How to remove bullets from widget
- Link to RSS feed not clickable?
- wanted to sort the wp_query array by two ACF field (Year and month)
- Created blank theme for REST API, featured image not appearing on admin side
- Best way to make a JSON API from WordPress?
- Child theme in separate WordPress Install
- Display problems in admin dashboard when creating a new theme from scratch
- Using Customizer value in an external PHP file inside a theme
- Convert HTML5/CSS3 site to WordPress Theme (need a lot of plugins) or just use the API?
- How to avoid Ajax in wordpress theme in making mulitple request?
- WordPress 3.5 + Foundation 5 not working on IE9
- Any disadvandages if I style the wordpress align classes without img and .wp-caption prefix
- Using wp_enqueue_script with social media buttons?
- Want to include ad code after related post
- How can disable function wp_link_dialog()
- Pagination adds product to cart Woo-Commerce
- Onepage with shortcodes
- Allowed memory size of (…) exhausted
- Feeds are showing where Post archive page should be
- WordPress Two Level Filters on Getting Custom Taxonomy Terms
- I want to resize post featured image without cropping image. How?