• When ever I change the permalink structure to anything other than the default when I click on any links other than my homepage I get a page not found error. I was told this could be an issue with my htaccess file.

    My htaccess file is located in my root folder. This is what is in that 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

    Is that correct? If it is not the file that is the problem, what could it be?

    The page I need help with: [log in to see the link]

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

    (@sterndata)

    Volunteer Forum Moderator

    How are you hosting your site?

    If this is a VPS you manage, it appears you’re using Apache 2.4. In the config file for your virtual host add these three lines then restart httpd/apache:

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

    Of course, replace /path/to/wordpress with something like /var/www/html/.

    Thread Starter astima

    (@astima)

    I made those changes to the config file, but when I change the Permalink structure in my dashboard it still doesn’t work. My homepage displays, but no other pages.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Please post your apache config file.

    Thread Starter astima

    (@astima)

    I did not make the changes to the file. I asked my host to do it. Would I have access to it or do I need to ask them for the file?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Are you on a commercial host? If so, this is a hosting problem and they should be able to fix it.

    Thread Starter astima

    (@astima)

    Our company uses a small company to host. We are the only site that uses WordPress. So what exactly should I ask them, because if I don’t tell them exactly what I need them to look at or do they won’t know.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Show them the code I showed you.

    Thread Starter astima

    (@astima)

    I gave them that code right after you posted it. They said they did it. Could they have done it wrong since it’s still not working?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Is mod_rewrite installed and active?

    Thread Starter astima

    (@astima)

    How would I know? Do I have to ask them?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Ask your host why they think the .htaccess file is being ignored.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘htaccess file and permalinks’ is closed to new replies.