• Resolved Gougnek

    (@gougnek)


    Hi,

    I had to move WordPress from an URL to another. Basically, I managed to do it without specific tools for migration. The result seems 100%, except one thing I can’t understand: the permanent links configuration is only partially working.

    Here are the details:
    If I select “Plain” in the permanent links (address finishing for example with “?p=123”), the site is working. If I select any other option for permanent link, for example based on article name: (address finishing for example with “/example-article/”), this doesn’t work any more. Any address based on such a model with result in “Error 404”.

    This mechanism of URL interpretation to find the good page/article is part of WordPress core flies and it should use some parameters outside of the permanent link configuration… something that I broke during my migration… does someone know anything about this ? Is there something in the database that I should change ?

    Of course, I can rely on “Plain” permanent links, but in the original site, there are many links that pointed directly to the destination by using the article name. I would have to change all of them… therefore, I prefer looking to a solution that would solve globally the issue.

    I don’t provide a link as the only result is a 404 error… this doesn’t bring much value to understand the issue.

    Thank you for any help or advice.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator t-p

    (@t-p)

    If I select “Plain” in the permanent links (address finishing for example with “?p=123”), the site is working.

    I am assuming by “permanent links” you mean “permalinks”.

    And by “Plain” you mean the default setting.

    If the that works, then try reading Using_Permalinks before setting a custom permalink structure again.

    Hi,

    Thanks for your answer. Sorry for the strange words used, but my WordPress in installed in french and I have to guess the equivalent in English… so yes, I am speaking about “permalinks” and yes “Plain” is the (completely wrong) translation of “Default”.

    I read the link you provided. I have an Apache server, and according to what I read, having the mod_rewrite module installed is one of the requirements to have “Pretty Permalinks”. I tested the mod_rewrite from a php script, and it is active at the root directory where I installed WordPress.

    Another one is the “Followsymlinks” directive. I added it in a .htaccess file at the root of the wordpress site. This didn’t change anything.

    Then I added the “AllowOverride All” directive, which transformed the 404 error in a “Internal server error”.

    Finally, I read somewhere that WordPress is supposed to adapt the .htaccess with the necessary configuration based on the type of permalink we select. On my case, this wasn’t done due to missing write rights in the root directory for WordPress. That is the reason why it didn’t work. Finally, the following configuration was added by WordPress in the .htaccess file (after I solved the write limitation issue):

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /my_root_directory/
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /my_root_directory/index.php [L]
    </IfModule>

    Now everything is working fine.

    Regards.

    Moderator t-p

    (@t-p)

    Glad to know it ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Permanent links only partially working’ is closed to new replies.