Htaccess file for WordPress websites

Posted on November 14, 2018 at 3:25 pm

Create a .htaccess file on the root directory of your website.

Then copy the content below on the .htaccess file:

# 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

Now your WordPress site should support permalinks correctly.

Such as site.com/products/rolex/

Receive updates via email

Other Posts

Updated Posts