• Resolved ivalladt

    (@ivalladt)


    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 https://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 https://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?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Samuel B

    (@samboll)

    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

    Thread Starter ivalladt

    (@ivalladt)

    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!

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

    saddacracker

    (@saddacracker)

    Thank you, xabhishek!
    Your solution worked. I have no idea why, though ??

    saddacracker

    (@saddacracker)

    Found this:
    In some (or all?) server configurations, mod_rewrite requires followsymlinks to be enabled, or it will crater with a 500-Server Error.

    If your mod_rewrite code works without the options +followsymlinks directive, that means that your server configuration file has enabled them already, and you won’t need that directive in your .htaccess files.

    I try to remember to include it in posts here anyway, just so someone asking mod_rewrite questions won’t have a problem, and either give up, or have to post again.

    link

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘403 Forbidden when changing permalink settings’ is closed to new replies.