.htaccess for WordPress when changing to pretty permalinks

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

The code above is needed at the site folder when using MAMP. This makes the site able to use prettylinks instead of uglylink which is what is default selected when installing WordPress

Alf Hammerseth Written by:

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *