At minimum, for a WordPress site, you need the following in your .htaccess file in your public_html folder:# 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
This rewrites the URLs so they look cleaner using the permalinks feature in Wordpress. Without this, you may see 404 errors when browsing to different pages in WordPress.
- 90 Users Found This Useful