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
- How does printf( __( ) ); work?
- Return HTML Template Page with PHP Function
- Change the filename format of saved featured images
- Getting the comment number relative to all the post’s comments
- Config apple-app-site-association file with wordpress
- How to use the php if statement [closed]
- lazy load comments wordpress on click
- How can one utilize a variable as a callback function name for add_settings_field
- Using a switch statement in WordPress
- Pass PHP variable to JavaScript without inline JS
- Where Does WordPress Make cURL Requests? How To Add cURL Option
- Adding nofollow to a PHP generated Nav
- Store multiple custom field as post meta per post(css, js, html, 2 link) [closed]
- How to make my custom widget appear within WordPress widgets? Plugin development
- “imagejpeg” function is not working in wordpress
- PHP code to use on next & previouspage links
- How to remove coupon dropdown feature
- Add html link in functions.php files of the theme
- Output only links using wp_nav_menu()
- How to add Post Tags to a new element in header.php?
- How to make the WordPress Editor not accept HTML?
- Publish button now showing content after saving
- User filter posts by year
- bp-custom.php is not working on a WordPress multisite environment. how to fix it?
- Trying to call dynamic content into a 3rd party shortcode
- Adding wp users ID into a link address from a DIVI modul
- Limit Search to Product Pages only unless I’m on Blogpage or Blogposts
- WP query posts BUT show the most recent and one per author
- Block error message in foreach loop when looping through ACF field
- shortcodes, custom php and their errors
- How to change the value of a variable using input field?
- Difference between “Walker_Nav_menu” and “walker”
- Remove node from multisites?
- user update profile for custom code
- Why isn’t my custom Javascript showing up in my custom template?
- Where is the php file of single member profile view (BuddyPress)
- Need some help with tweaking a code for woocommerce [closed]
- need help to arabic text in wordpress
- Sorting Meta Fields?