• I am getting a 404 error when I try to preview my posts and pages.

    I just moved WordPress from our root public_html directory to a subfolder last night. I followed these instructions to make that happen: http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory using a preexisting subdirectory install.Everything seems to be working great except for when I go to try and preview a post.

    I went in to edit my .htaccess file by copy+pasting the following code, but this exact code is already in my root (public_html) .htaccess file:

    01
    # BEGIN WordPress
    02
    <IfModule mod_rewrite.c>
    03
    RewriteEngine On
    04
    RewriteBase /
    05
    RewriteRule ^index\.php$ - [L]
    06
    RewriteCond %{REQUEST_FILENAME} !-f
    07
    RewriteCond %{REQUEST_FILENAME} !-d
    08
    RewriteRule . /index.php [L]
    09
    </IfModule>
    10
    # END WordPress

    I also tried logging out of WP, clearing cache, closing browser, and logging back in yet I’m still having this problem.

    I also tried modifying the permissions on the .htaccess file to 666 (currently 644) and re-saving my Permalinks settings from within WP in an attempt to get WP to handle it, but I still got that message saying “this could be done automatically if WP had permission, but it doesn’t, so copy the following code into your .htaccess…”

    It may help to know that I built the site in the subfolder (iimaproductions.com/clients/iima) and am able to access it via a subdomain I setup: iima.iimaproductions.com. Since it’s our main domain and company website, I made it so it’s accessible via iimaproductions.com (without the iima. prefix) even though the files still reside in the /clients/iima subfolder. Hope this makes sense.

    If it helps, in my General settings, my WordPress Address URL is set to http://iima.iimaproductions.com and my Site Address URL is set to http://iimaproductions.com

    Thanks for any advice you can give me.

  • The topic ‘Moved WP to subfolder, Preview Post not working’ is closed to new replies.