• Hi there,
    I’m hosting wordpress on my server, when I change the permalinks from default to a custom one, it gives me the error message:
    Not Found
    Apologies, but the page you requested could not be found. Perhaps searching will help.

    The articles, contact and about me section show up fine, but the categories and the main page show the above error message.
    Any advice to resolve this would be much appreciated.
    Thank you

Viewing 14 replies - 1 through 14 (of 14 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    That usually means your .htaccess isn’t working right.

    What is it?

    Thread Starter webnomad

    (@webnomad)

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

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Are you running WordPress multisite? That’s the .htaccess for single (i.e. normal) WordPress.

    Thread Starter webnomad

    (@webnomad)

    I’m not aware of wordpress multisite, is it a code I need to change?

    Thread Starter webnomad

    (@webnomad)

    I just tried the instructions in this link and it did not work..
    https://www.wpbeginner.com/wp-tutorials/how-to-enable-multi-site-option-in-wordpress-3-0/

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    No, it’s an option. And I asked because if you’re NOT using MultiSite, you’re in the WRONG sub-forum ?? And MultiSite won’t work anyway, as your .htaccess isn’t being read, which means you need to ask your webhost if Mod_rewrite is on and supported.

    Moving to troubleshooting.

    Thread Starter webnomad

    (@webnomad)

    Thanks for that. I contacted the support desk of my host, and they said the following:

    Hello,

    The rewrite module is already enabled in the server, please see the result from the server pasted below for your reference;

    ==============
    root@s392 [~]# httpd -l | grep rewrit
    mod_rewrite.c
    ==============

    Let us know if you have any queries or concerns.

    Thread Starter webnomad

    (@webnomad)

    Anyone? ??

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Go back to your host and tell them the .htaccess is NOT being read, as evidenced by how UGLY permalinks work, but pretty do NOT.

    Thread Starter webnomad

    (@webnomad)

    Thanks for your response, I did direct my host provider to this discussion. They responded below:

    we have gone through the posts you provided in the given URL. We could see that proper permissions are set for .htaccess file. Please verify:

    =======
    [/home/xxxxx/public_html]# ll .htaccess
    -rw-r–r– 1 xxxxx xxxxx 210 Apr 20 19:40 .htaccess
    ========

    Also, mod_rewrite is enabled on the server. Please verify:

    ========
    httpd -l | grep rewrit
    mod_rewrite.c
    ========

    Please have a check from your end and do let us know if you have any further queries or concerns.

    Thread Starter webnomad

    (@webnomad)

    Could this by any chance be a theme issue? I’m using the twenty ten theme.

    It’s not a theme issue. It’s a server issue. Is mod_rewrite running on your server?

    Thread Starter webnomad

    (@webnomad)

    Hi Esmi,
    Thanks for your response. The mod_rewrite is running my server as evidenced from the posts above.

    Thread Starter webnomad

    (@webnomad)

    Ok, to review the status quo..
    1. The .htaccess file exists in the wp folder with the following text
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    2. The permission settings are set to 644

    3. The server host have indicated that mod_rewrite is being supported:
    =======
    [/home/xxxxx/public_html]# ll .htaccess
    -rw-r–r– 1 xxxxx xxxxx 210 Apr 20 19:40 .htaccess
    ========

    Also, mod_rewrite is enabled on the server. Please verify:

    ========
    httpd -l | grep rewrit
    mod_rewrite.c
    ========

    Yet when I change the permalink settings from default to custom, I still get the following message
    Not Found
    Apologies, but the page you requested could not be found. Perhaps searching will help.

    Any solution anyone?

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘'Not Found' Error message when changing to custom Permalinks’ is closed to new replies.