Forums

Local to live install problem (I think) (4 posts)

  1. ldexterldesign
    Member
    Posted 3 years ago #

    Hey guys,

    Hope you're all cool. I'm also hopeful someone can shed some light on this. I'm sure it can easily be solved.

    Just finished a WP site - I was working on it locally at:

    http://localhost/wordpress/files
    AKA htdocs/wordpress/[files]

    I've just transferred all the [files] to my root web space, made a few changes in the wp-config.php file to tell it where the DB is, updated a few URLs in the control panel's settings, and set up the DB (which is all fine - it's seeing the content).

    However, I get a really weird problem. The homepage is fine, I can also click through to the posts and get search results, but none of the pages work?

    See for yourselves:
    http://localhost/wordpress/ - local
    http://www.test.ldexterldesign.co.uk/ - live

    My first thought was that this could be a .htaccess issue (seen as I've essentially gone from a folder install to a root install), but surely none of the pages, including the homepage, posts, and search would load if this was the case?

    Here's my htaccess file as I see it:

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

    Can't say I'm an expert here :Z

    Any thoughts guys?

    Thanks,
    L

  2. ldexterldesign
    Member
    Posted 3 years ago #

    Correction:

    However, I get a really weird problem. The homepage is fine, I can also click through to the posts and get search results, but none of the pages work?

    I can only see the homepage and a search results page (http://www.test.ldexterldesign.co.uk/?s=lorem), not a post page, as previously mentioned.

    Hmmmm...

    L

  3. ldexterldesign
    Member
    Posted 3 years ago #

    Hehe, isn't it always the way. I've just fixed this.

    For some reason my permalink structure had changed during the process of putting the site live and I needed to put it back to where it should be; 'from Custom structure back to Day and name.

    Sometimes it's like I'm taunting the devil when I post here for help, I swear.

    Hope someone finds this post helpful somewhere down the line anyway!

    L

  4. mjoanisse
    Member
    Posted 2 years ago #

    I'm experiencing the same problem, and with what said above. I will clarify on a few points.

    first of all, i have been working with files locally, and for client/review phase, i am of course requested to upload site and files to server.

    Problem? When i clicked through to posts/pages. I was getting an error, with some detail about '/index.php'.

    why? When testing locally and setting my 'permalinks' to a custom structure, it manually updated the files necessary for it to be dynamically updated on server, however; when on live server, the WP did not have enough access to my .htaccess file, forcing it to work unproperly.

    Solution : navigation to your 'Settings > permalinks'. you should see a message at the top displaying 'You should update your .htaccess now.'

    Scroll to the bottom of this 'permalinks' page, and locate the contents in box below 'If your .htaccess file were writable, we could do this automatically, but it isn’t so these are the mod_rewrite rules you should have in your .htaccess file. Click in the field and press CTRL + a to select all.'

    Update the .htaccess file and everything should work again, I hope this helps.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.