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]
- how to combine wordpress and front framework
- How To extend WP_Customize_Control
- Is wp_is_mobile() effective?
- Display Menu Name using wp_nav_menu
- What questions do you ask when asked to give an estimate on theme development?
- How to remove dashicons.min.css from frontend?
- What’s the difference between home.php and index.php?
- get_template_part vs action hooks in themes
- How to insert a logo in the header?
- A way to automatically install pages on theme install?
- Generating CSS Files Dynamically Using PHP Scripts?
- Add Caret to Menu Items with Sub-Menus in WordPress Theme
- Why doesn’t default WordPress page view use force_balance_tags?
- Proper, exhaustive documentation for wp.editor etc
- Create “File-less” Page Template in Functions.php
- How to determine if custom menu is active?
- Including CSS and JS on Admin Screen of Custom Theme Options
- How to remove duplicate link from add_menu_page
- Custom theme/plugin update checks
- Display admin notice only on main dashboard page
- Custom Comments – Parent / Nested Reply
- Automatic Updates For Private And Commercial Themes?
- Hide certain pages / posts on wp-admin, show custom filter
- What does “Do not deregister the jquery script in the administration area” mean?
- What is the purpose of an extra file for translation?
- What is the best book to learn how to make themes for wordpress?
- What is best practice for writing/using custom PHP classes in a theme?
- POST to a REST API from a wordpress form
- add_image_size is scaling, even though crop is set to true
- Removing all classes from nav_menu except current-menu-item and current-menu-parent
- Problem with registering menus – What to do when other solutions aren’t working?
- Multiple Custom_Background, is it possible?
- Problems with Layout inherit in theme.json
- Adding inline styles from a widget
- Get password when user registers and save it sha1 into database
- Can’t edit style.css in subdirectory of my theme?
- Best practice for including plugins as part of a theme?
- Headless WordPress: How to authenticate front end requests?
- add_theme_support(‘my-custom-feature’)
- Get more than 10 posts in a specific category with the wordpress api
- Replace #site-title with resizable image in Twenty Twelve? [closed]
- Settings API enable default settings on theme install?
- Details of wp_localize_script
- query posts in wordpress
- Displaying wp menus by name without using theme locations
- Adding dashicon fonts to the admin of pre 3.8 installs
- Use theme folder instead of plugins_url
- Change date number to another language/script?
- the_content() in single-{post-type}.php problem
- How to handle theme customization and sass variables
- wp_enqueue_scripts not called on search page?
- Change display of featured image for pages in twenty seventeen theme
- Setting hero/splash section as a blog post
- How to set page template on front using starter content?
- Different Admin Theme – Based on Role?
- Do I really need the div class entry?
- How to manipulate “add media” pop-up
- Finding Page Template and Displaying Content
- how to set more than one menus to the same theme location
- Override Constants in Child theme
- How do I update WooCommerce template files in my theme? [closed]
- Add tinymce to widget textareas
- WordPress Gutenberg Theme: Structure, Hierarchy and Custom Templates
- why adds ‘»’ symbol?
- Theme unit test data Foreign fonts come in garbled on my machine
- How to Take Ownership of a Theme
- How can I exclude specific authors from wp_list_authors
- how to wrap tag in tag html to wordpress menu conversion
- Understanding the WordPress template hierarchy
- How to display the content for given page ID withot the wrapper?