• I have a WP installation and when you go to the installed root folder in this case /knowledgebase/ it is bringing back a series of blog posts as expected.

    I have also set my permalink creation as custom /%category%/%postname%/ as this is our prefered structure. However when ever I link to either e.g. /knowledgebase/categoryname/ or /knowledgebase/categoryname/articlename/ it keeps going to a 404.

    I have followed the same data structure on another installation on a seperate domain which works. Does any one have an idea as to what could be causing it to error?

    Many thanks

    Tim

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter caravanguard

    (@caravanguard)

    I initially thought it was on 3.1.1 like the other WP installtion we have it – turns out it is on WordPress 3.0.3. Will this have any bearing on things????

    Thread Starter caravanguard

    (@caravanguard)

    I have now upgraded to the latest version of WP. Still no luck, does anyone have a clue as to why it is 404’ing when I click on a post which is linked by a custom permalink????

    Have you tried re-saving the permalink structure to see if that solves the issue?

    Thread Starter caravanguard

    (@caravanguard)

    If you mean by saving it in the settings >> Permalinks in the WP Admin panel then yeah, I have tried this and also tried changing, nothing is working. The standard default permalink ?p=999 does work.

    Are the permissions of your .htaccess file in your knowledgebase folder correct?

    Try setting them to 777 and resaving via the permerlink admin page. If that works then set them back to 644.

    It’s also worth checking the htaccess rules are something link this…

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

    Note the knowledgebase.

    Thread Starter caravanguard

    (@caravanguard)

    My htaccess file is in the root directory rather than the WP installation folder of /knowledgebase/

    Here is my HTAccess

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

    Under general settings are theses two options the same?

    WordPress Address (URL)
    Site Address (URL)

    Or do they have different URLS?

    Thread Starter caravanguard

    (@caravanguard)

    Hold on a minute…. something just kicked in…. I asked my host about my hosting pacakge and something just happened, it wouldn’t suprise me if they just amended a setting for me… Sorry to have been a pain, but thanks for all your help it will certainly go to good use in the future if I have a similar issue.. Cheers theAPE.. :o)

    Thread Starter caravanguard

    (@caravanguard)

    I just got this.

    Hi,

    This should now work correctly, within the hosting settings PHP was set to use the Apache module, when it needs to use FastCGI to work as required.

    ——————————————————-
    Best Wishes,

    Technical Support Team

    Article about PHP handlers – https://boomshadow.net/tech/php-handlers/

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Category and Posts issue’ is closed to new replies.