It wasn’t a .htaccess problem, but an apache configuration problem.
On a Mac server you need to:
- compile XSendFile as a universal binary:
apxs -cia -Wc,"-arch i386 -arch x86_64" -Wl,"-arch i386 -arch x86_64" mod_xsendfile.c
and - modify the site specific httpd.conf file in
/Library/Server/Web/Config/apache2/sites
.
If you’re having the same problem, I wrote about this on my blog – hopefully it’s helpful to someone!
Related Posts:
- How to create custom 401, 403 and 500 error pages?
- PHP – redirect https to http and www to non-www
- Bypass .htaccess when using download_url
- How can I run a .php file located in my site’s root folder?
- Fix 403 error on WordPress multisite network using subdomains
- How do I edit the php/html for a particular post?
- How to redirect all 404 in a WordPress subdirectory to the index.php of subdirectory?
- How to run multiple websites from single WordPress setup
- Using PHP in a Stylesheet (possibly a “.htaccess” problem?)
- How to override .htaccess with new rules without ftp or edit it manual
- WordPress-site can be reached on x.x.x.x/index.php – but not directly on the IP without index.php
- Change the actual (or viewable) WordPress directory structure
- Add htaccess rules with insert_with_markers at beginning of htaccess
- Cannot get media type from ‘x-mapp-php5’
- How to rewrite URL with PHP variables with htaccess to a normal looking URL?
- How to change home or site url using action hooks or filter?
- Apache Fallback instead of add_rewrite_rule
- 3 blogs same installation, without WP MU
- Two Different Links for Same Product – WooCommerce [closed]
- Was told to change the .htacess file form .html to .php so this would work properly
- How to change redirection route to a php page for making it only accessible by logged-in members?
- how to combine wordpress htaccess on my root domain + php on subfolder
- subdirectory index.php is not working
- custom url rewrite for wordpress
- Loading index.php contents which located outside blog folder for post single page
- WP & Server Speed [Teacher Question]
- WordPress add_rewrite_rules for custom URLs ending in .html
- How to replace file_get_contents() with a WordPress Filesystem call
- Running rmdir function on post save
- Troll the hackers by redirecting them
- Seo Friendly Filter URLs
- How to allow download url redirection only if user logged in WordPress site?
- How to disable all logins except Network login in WordPress Multi site?
- Is there a name for trivial WP PHP files like functions.php, archive php entry.php, page.php and so forth?
- Removing files programmatically
- Is it possible to restrict files from your wordpress uploads (not logged-in users or guest)?
- Simple seo-friendly custom $_GET url rewrite with htaccess
- How to make Subdomain work for product_tag?
- How to serve WordPress folder over subdomain?
- How can I create a WordPress dynamic download counter
- Pages from admin dasboard missing after site migration
- Rewrite rule not working, but only when parameter is text
- Internal Server Errors – Moving working multi-site install to my localhost
- Unzip_file causing Media file upload error
- Deny php execution in /wp-includes – using .htaccess in /wp-includes VS root folder
- How come there is no error if I upgrade WordPress core after locking .htaccess permissions to 644?
- How to block access to a folder inside of wp-content for non logged in users?
- WordPress Redirect / Add_Rewrite_Rule – Non Index.php Page
- How to change query string with pretty URL in WordPress using .htaccess file
- Upload images from one server to an other in wordpress
- Problem with ajax request and directory structure after site migration
- How can I add “.html” to the end of a single URL on a WordPress website?
- Resource 404 error on multisite subdirectory install
- redirect 301 with special character like WIX site “#!”
- 301 redirect from webpage to wordpress page in the same root
- Rewrite /keyword1+keyword2.html to search page | .htaccess
- Redirect homepage /page/1/ to /blog/page/1/
- Why I can download any file except PHP files from a URL but I can download any from another site?
- 3 domains, 1 wordpress install, redirecting and changing domains on live site
- How to use multiple 404 Error Pages in WordPress
- Increase Upload Size with htaccess | MAMP
- wp-login – unable to redirect user to a custom login url
- NGINX rewrite rules for WordPress Subdirectory Multisite to support deep URL
- Change WordPress Multisite Domain to subfolder
- How to do SEO friendly filters urls?
- Warning: Attempt to read property “ID” on null in D:\xampp\htdocs\yba\wp-content\themes\young-brand-child\functions.php on line 162 [closed]
- Having Issue on Redirecting With Session in WordPress
- Why is $wp->request empty in WordPress 6.0?
- Custom PHP script throws critical error ONLY when editing page
- Why am I getting a different filename? And how does WordPress load singular.php for both Page & Post? (Fresh WordPress installation)
- Asynchronous multiple requests 401 Unauthorized
- Returning data instead of echoing/printing
- Converting Y-m-d to a date with a Month name? [closed]
- Correct way to enqueue page specific CSS file
- Override a function defined in wp-includes/comment-template.php
- Get the URL of the page from which an ajax request has been launched within ajax callback
- Edit the_category (); for a hierarchical display
- Wrapping a Sidebar within
- JSON REST API WordPress only showing first 10 categories
- How do I modify the custom footer text and get theme version number to show in wordpress admin?
- Category title output before opening title tag
- unable to use ‘new WP_Query’ in AJAX call
- Omit custom post type from wp-sitemap.xml based on meta key using wp_sitemaps_posts_query_args
- User register hook is not working in woocomerce register form
- Password minimum length in personal subscription [closed]
- Show meta box only for default page template
- Illegal string offset in PHP function
- echo something inside a shortcode
- Hide a div when tags doesnt exist [duplicate]
- admin-ajax Firing Error 400 When Logged In
- WordPress template page name displayed on screen
- Need to put a script above tag in header.php – WP 5.7.1
- Display related posts without a plugin
- How to add API security keys into JS of wordpress securely
- How to use a custom hook
- Search WordPress using static html page
- How to check if the current page is at a specified path in the URL?
- How to use html inside a functions.php code?
- Multiple meta_key in one global $wpdb;
- Nested “do” and “add” Actions is possible?