Coolest Guides on the Planet

coolest guides on the planet

Coolest Guides On The Planet

  • Home
  • macOS
  • WebDev
  • All Posts
  • Contact

Fix 403 Forbidden Error, WordPress, .htaccess

June 28, 2011 22 Comments

Forbidden 403 Error
You don’t have permission to access /~username/blahblahblah on this server.

403-htaccess-forbidden-wordpress

403-htaccess-forbidden-wordpress

When you customise WordPress to have custom permalinks, WordPress needs to make rewrites to clean URLs and produce a ‘.htaccess‘ file in the root directory of the webserver installation, sometimes the “.htaccess” rewrite composition isn’t the best and produces a 403 Forbidden error for the entire site, basically eventhough the ‘.htaccess’ has the right permissions the webserver is not explicitly allowing the rewrites for that directory.

To temporarily get out of the jam, just disable the ‘.htaccess’ file. You can rename it ‘htaccess.txt’
But to fix the issue properly and use your .htaccess file you need to add additional directives at the head of the file.

Once you get the error – first thing to check is the apache webserver error log. Depending on your OS it has a different location; on Mac OS X  it’s in /var/log/apache2/error_log, on most Linux boxes it’s in /var/log/httpd/error_log

If the error is similar to:

[Tue Jun 28 18:21:48 2011] [error] [client ::1] Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden:

Then add “Options +FollowSymLinks”  to your .htaccess file  at start of the file:

Options +FollowSymLinks
# 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 the 403 should be no more.

Cats: macOS, Open Source, WordPress Tags: 403, error, htaccess, options, symlinks

Tags

3gs 10.6 apache backup baseband boot clean urls cpanel css curl custom database drupal el capitan git Google image instadmg ios iphone jailbreak keys lion mac macos mojave macos sierra menu mysql OSX panda php phpmyadmin private public redirect redsn0w remote rsa SEO shell ssh terminal unstoppables upgrade urls

Donate a Beer to the Coolest Guides

Get Beaver Builder Now!

Discuss

3gs 10.6 apache backup baseband boot clean urls cpanel css curl custom database drupal el capitan git Google image instadmg ios iphone jailbreak keys lion mac macos mojave macos sierra menu mysql OSX panda php phpmyadmin private public redirect redsn0w remote rsa SEO shell ssh terminal unstoppables upgrade urls
Get DesktopServer

Lynda

Lynda.com Online Training Videos

TreeHouse

smlinks

Learn WordPress
osx-modify-shell-path

How to Add to the Shell Path in macOS Big Sur and Catalina using Terminal

October 19, 2019

virtual-hosts osx 10.10 yosemite

Set up Virtual Hosts on macOS Catalina 10.15 in Apache

October 19, 2019

Installing Homebrew on macOS Catalina 10.15, Package Manager for Linux Apps

October 18, 2019

Where is the bash shell in macos Catalina?

October 12, 2019

Refine your search

  • All
  • Modules
  • Themes
  • Documentation
  • Forums & Issues
  • Groups

RSS ars technica

  • Google hits back after Apple exec says AI is hurting search
  • Apple: “Hundreds of millions to billions” lost without App Store commissions
  • Matter update may finally take the tedium out of setting up your smart home
  • Cue: Apple will add AI search in mobile Safari, challenging Google
  • Apps like Kindle are already taking advantage of court-mandated iOS App Store changes

RSS mac surfer

  • Tot is new text editor for Mac, iPhone, and iPad focused on constraints and ease of use
  • TiPbITS: Google Drive Sorting Can Hide New Documents
  • How to take a screenshot on a MacBook Pro
  • How To Create Simple Animation With Mac Keynote
  • Last Week on My Mac: Virus pandemics

Donate

Copyright © 2025· Neil Gee - All Rights Reserved - Hosted by Runcloud

Copyright © 2025 · gee on Genesis Framework · WordPress · Log in