• Resolved Znelson1989

    (@znelson1989)


    I am attempting to setup postname permalinks on my site. Changing the permalinks in Settings->Permalinks doesn’t produce an error related to .htaccess as far as I can tell (it says permalink structure update). However the links that it generates 404 and are not really postnames. (For instance one of my posts was just domain.com/95 which 404’d.

    This is the contents of my .htaccess file

    
    # 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
    

    I have verified mod rewrite is enabled.

    Not sure what I am missing here.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Are you using a hosting company or hosting the site on your own VPS?

    Thread Starter Znelson1989

    (@znelson1989)

    I’m on my own VPS.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    In your http/apache config file, where you define the virtual host for your site, add this

    <Directory /path/to/wordpress>
      AllowOverride All
    </Directory>

    then restart apache or httpd

    /path/to/wordpress is something like /var/www/html

    Thread Starter Znelson1989

    (@znelson1989)

    Thank you that solved the issue.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Permalink Structure questions’ is closed to new replies.