• Hello,

    I’m having a few issues with my blog set up as a subdomain; just wondered if someone might be able to share some thoughts / ideas to help me out.

    I have seen this type of behaviour from WP before running it locally in WAMP and all it turned out to be was the apache rewrie module wasn’t ticked. Once enabled it all worked fine. So I’m thinking along the lines at the moment that if the site id there and looking as it should be it just can’t find pages or posts, then surely thats just something to do with a rewrite rule.

    So in my .htaccess file I have the following code after finding a very useful article shared on here already.

    # BEGIN WordPress
    Options -Indexes +FollowSymLinks

    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^puppetsproject.com [NC]
    RewriteRule ^(.*)$ http://puppetsproject.com/$1 [L,R=301]

    RedirectMatch 301 ^/rickyexplores/(.*)$ http://rickyexplores.puppetsproject.com/$1

    # END WordPress

    This site is actually live at the moment, so if you go to: http://rickyexplores.puppetsproject.com you will see the blog, but will find out soone enough that pages and posts are ‘not found’.

    All the files are within a folder ‘rickyexplores’ within the root of the http://www.puppetsproject.com website.

    I’m at a bit of a loss; am I doing something obviously wrong?

    Any thoughts would be gratefully appreciated, many thanks in advance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Your links are all going to puppetsproject.com/rickyexplores…

    This means that in your general setting you have the site url set to puppetsproject.com/rickyexplores….

    Anyways something is set like that because if you after getting the 404 change the url to the subdomain it all works.

    Thread Starter minimel82

    (@minimel82)

    I see; so you’re right. Only problem now is I can’t login to the admin panel now. Even after changing back the .htaccess file to how it was originally before I started to make all the changes.

    Feel like I should get the ‘dunce bunny’ today!

    I assume you still have access to your database?

    if so you can go into the settings table and find the bad url there are two settings that should in most cases have the same url.

    So you just need to get into phpMyAdmin and find the two url settings and make sure they have your subdomain.

    Thread Starter minimel82

    (@minimel82)

    LOL! Goodness me! How on earth I managed to get in that mess!

    Anyway, thank you for help – you were indeed correct about it being the home and site url being wrong in my general settings. (I never thought to look there as I didn’t install wordpress – our partner company did it for me originally).

    And I don’t even need the rewrite rule in the .htaccess file either, so that’s gone!

    All seems to be working, just a few images URLs to find and replace. Oh look a plugin to do it all for me!

    Thanks aphill70 for pointing out the obvious to me and helping me to fix it!

    Cheers

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘pages not found in WP subdomain’ is closed to new replies.