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 OnRewriteBase /RewriteRule ^index\.php$ - [L]RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule . /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.
- 187 Users Found This Useful