Forums

[resolved] Permalinks /%postname%/ results in error 404 with integrated wordpress blog (5 posts)

  1. surfichick
    Member
    Posted 4 months ago #

    I recently integrated a wordpress blog to my site.
    I already use the following in my sites htaccess file to remove .php from the urls:

    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME}\.php -f
    RewriteRule ^(.*)$ $1.php

    When i change the blogs permalinks to /%postname%/ or anything other than default i get error 404 on all posts/categories etc.
    I know its the htaccess thats the problem but have no idea how to fix it.
    Any top tips would be most welcome :)

    The site:
    http://www.celticquestcoasteering.com

    The blog:
    http://www.celticquestcoasteering.com/blog

  2. surfichick
    Member
    Posted 4 months ago #

    Turns out i was being a complete plum!
    I uploaded wordpress folder from running it on my local testing server. Rules & conditions within wordpress' htaccess file had localhost filepath, doh!
    Copy and pasted code from wordpress permalinks page in admin, problem solved.

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

    Its always something simple, staring me in the face, that i'm completely blind to.
    Sorry if i wasted anyone's time on this one x

  3. gsd0519
    Member
    Posted 3 months ago #

    What was the final htaccess code you used? I am having a similar problem.

    thanks

  4. surfichick
    Member
    Posted 3 months ago #

    Hey there
    final htaccess code i used is the section quoted above :)

  5. cknight411
    Member
    Posted 1 month ago #

    I used this same code and still only get the MAIN page to show up....

    Any ideas on how to get all the permalinks to show up?

    Thank you
    Morpheus

Reply

You must log in to post.

About this Topic