Support » Localhost Installs » Permalinks not working

Permalinks not working

  • I am having issues getting permalinks to work on my localhost

    I am running Mac OSx with standard php / apache install

    When I activate my permalinks to post name I get this error message

    403 Forbidden


    You don’t have permission to access /~steve02/allisongrayce/index.php on this server.

    Here is what I have done so far
    htaccess file –permissions set to 777

    Options -Indexes
    Options +FollowSymLinks

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /~steve%202/allisongrayce/
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /~steve%202/allisongrayce/index.php [L]

    # END WordPress


    has the following code in it

    # User home directories
    Include /private/etc/apache2/extra/httpd-userdir.conf

    httpd-userdir.conf has the following code in it

    # Settings for user home directories
    # Required module: mod_userdir

    # UserDir: The name of the directory that is appended onto a user’s home
    # directory if a ~user request is received. Note that you must also set
    # the default access control for these directories, as in the example below.
    UserDir Sites

    # Users might not be in /Users/*/Sites, so use user-specific config files.
    Include /private/etc/apache2/users/*.conf
    <IfModule bonjour_module>
    RegisterUserSite customized-users


    steve 2.conf file has this code in it

    <Directory “/Users/steve 2/Sites/”>
    Options Indexes MultiViews FollowSymLinks
    AllowOverride All AuthConfig

    Allow from all

    Any suggestions?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I figured this out

    All I had to do was add /index.php/%postname%/ to the custom structure

    I’m not exactly sure why this is…but it solved the problem

    can someone explain why this works?

    I guess the problem is caused due to the space in the directory name “steve 2”. Rename it to steve_2 and also find & replace all occurrences of it in the httpd.conf file.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Permalinks not working’ is closed to new replies.
Skip to toolbar