WordPress.org

Ready to get started?Download WordPress

Forums

Images not appearing after moving to subdirectory (2 posts)

  1. SFGolfer
    Member
    Posted 4 years ago #

    I moved my wordpress to a subdirectory per the article http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

    .htaccess and index.php are both in the root. All other files are in the /wordpress subdirectory.

    This is my .htaccess created by WordPress:

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

    Custom permalink: /%postname%

    WordPress URL: http://www.domain.com/wordpress
    Blog URL: http://www.domain.com

    Permalinks and overall navigation works just fine. It's the images that are not appearing. The images will only appear if the subdirectory name is included:

    Works: http://www.domain.com/wordpress/images/logo.jpg
    Does not work: http://www.domain.com/images/logo.jpg

    Any ideas?

  2. SFGolfer
    Member
    Posted 4 years ago #

    In looking at the page's source code. every .css, javascript, etc is referencing the subdirectory name.

Topic Closed

This topic has been closed to new replies.

About this Topic