Forums

[resolved] 403 Forbidden when changing permalink settings (4 posts)

  1. ivalladt
    Member
    Posted 8 months ago #

    My provider changed from a Windows server to something called Plesk. I don't even know if this is a Linux or a Windows server. I suspect it's Windows, please confirm.

    In the old system I've managed to setup two Wordpress blogs with no problems.

    Now I unzipped Wordpress to a 2.0 folder. I browse to http://www.musicaonlinedos.com/2.0/wp-admin/install.php and configure it properly. My blog show up.

    Now I browse to permalink settings and try to change it to month/name. After saving settings the blog is no longer browseable. I go to http://www.musicaonlinedos.com/2.0/ and it says:

    Forbidden
    You do not have permission to access this document.

    It's a 403 error from the server.

    I see an .htaccess file is created under the 2.0 folder. Its contents are:

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

    # END WordPress

    I delete it and blog is back again. But now in the front page, links to posts have the month/name structure I tried to configure. Obviously if I try to open one of them, I get:

    Not Found
    The requested document was not found on this server.

    Correct, as I deleted mod_rewrite settings from .htaccess. I suspect those mod_rewrite settings conflict with some security settings.

    Eh, in my other two blogs month/name permalinks are set up correctly, but those settings are not in their .htaccess settings, so probably there it's a global setting set up by my provider in order to support Wordpress.

    Any ideas?

  2. samboll
    moderator
    Posted 8 months ago #

    you are on apache so you should be able to do it as you want.

    delete present .htaccess
    upload blank .htaccess
    chmod 666
    set permalinks to desired
    chmod .htaccess back to 644 for security

  3. ivalladt
    Member
    Posted 8 months ago #

    Checking logs my server was complaining that the RewriteRule could not be enabled, so I asked my provider to check AllowOverride was All for my virtual server. It's fixed now!

  4. xabhishek
    Member
    Posted 1 month ago #

    The solutions posted here did not work for me. What worked though, was adding this line before the # BEGIN WordPress comment:
    Options +FollowSymLinks

Reply

You must log in to post.

About this Topic