Configure WordPress htaccess in your Userdir on macOS

When the WordPress Permalink structure is configured as Post name, WordPress creates a htaccess configuration code like this:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /~your_username/wordpress/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /~your_username/wordpress/index.php [L]
</IfModule>

On macOS it generates a error message like this:

[Thu Oct 31 16:34:03.141592 2026] [core:notice] [pid 3141] AH00052: child pid 3141 exit signal Segmentation fault (11)

It can be fixed adding a comment in one line:

<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /~your_username/wordpress/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /~your_username/wordpress/index.php [L]
</IfModule>

Remember it is a local configuration, don’t apply this in your server.