403 Permissions error after changing permalinks

By Chris Parker on February 9, 2017 in php
0
11

Solution 1:

  1. Delete .htaccess
  2. Upload a blank .htaccess
  3. Set the permissions to 666
  4. Change the permalink structure to what you want.
  5. Set the permissions back to 644

Solution 2: Edit .htaccess

If WordPress is in a directory /blog:

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

If WordPress is in the root:

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

Solution 3:

Add the following lines above the WordPress generated code:

Options -Indexes
Options +FollowSymLinks

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

About the Author

Chris ParkerView all posts by Chris Parker >

0 Comments

Leave a reply

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.