Last Updated on September 29, 2020
[code]
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress[/code]
.htaccess
WordPress’s default .htaccess file looks like the code to the left.
You can also use the .htaccess file to do other things such as redirects or add password protected directories on the server. The following URL shows a bunch of redirects that can be done within the .htaccess file on a site. Just make sure you don’t remove the WordPress stuff from the file.
Redirecting a Web Folder Directory to another Directory in htaccess
wp-config.php
Future Video Goes Here