• I have a feeling this is a htaccess issue, but perhaps you folks can give me some specifics. I did a search of the forums here, as well as a Google search of the web, but came up blank.
    I ran a blog under Movable Type and converted it to WordPress. I did this initially on a staging server (stage.rapp.org). The images I had embedded in the posts showed up fine. So I moved everything over to the main site at http://www.rapp.org
    Suddenly the images are all broken, despite the fact that they are still in the http://www.rapp.org/archives/ directory. They broke as soon as I moved the htaccess file over to the main blog.
    My htaccess file, which is below, is aimed at keeping the old permalink style of http://www.rapp.org/archives/year/month/post_title/
    I assume I’ll have to add or alter something to get the images in the /archives/ directory to show?
    Thanks so much for your help!
    –Ron
    RewriteEngine On
    RewriteBase /
    RewriteRule ^archives/?([0-9]{4})/?([0-9]{1,2})?/?([0-9]{1,2})?/?([_0-9a-z-]+)?/?([0-9]+)?/?$ /index.php?year=$1&monthnum=$2&day=$3&name=$4&page=$5 [QSA]
    RewriteRule ^archives/?(.*) /index.php?category_name=$1 [QSA]

    RewriteRule ^archives/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed.php?category_name=$1&feed=$2 [QSA]
    RewriteRule ^archives/author/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed.php?author_name=$1&feed=$2 [QSA]
    RewriteRule ^archives/author/?(.*) /index.php?author_name=$1 [QSA]
    RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/([_0-9a-z-]+)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed.php?year=$1&monthnum=$2&name=$3&feed=$4 [QSA]
    RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/([_0-9a-z-]+)/trackback/?$ /wp-trackback.php?year=$1&monthnum=$2&name=$3 [QSA]
    RewriteRule ^feed/?([_0-9a-z-]+)?/?$ /wp-feed.php?feed=$1 [QSA]
    RewriteRule ^comments/feed/?([_0-9a-z-]+)?/?$ /wp-feed.php?feed=$1&withcomments=1 [QSA]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter ronrapp

    (@ronrapp)

    Here’s an example of a page with a broken image:
    http://www.rapp.org/archives/2004/04/son_of_a_beech/

    Try changing:
    RewriteRule ^archives/?(.*) /index.php?category_name=$1 [QSA]
    to:
    RewriteRule ^archives/?(.*)\/$ /index.php?category_name=$1 [QSA]

    Thread Starter ronrapp

    (@ronrapp)

    Thanks for the suggestion. I changed my .htaccess file as you suggested, but it’s still doing the same thing.

    Thread Starter ronrapp

    (@ronrapp)

    Any other ideas? I’ve checked with the folks on #wordpress and the gurus on #apache, as well as gone through the mod_rewrite guide on apache.org.

    ronrapp, I went from ‘archives’ to ‘vault’ as the stub for my permalinks for pretty much the same reason, about 6-8 months ago when I moved to WP. Google had caught on to the changes within 15 days.

    Thread Starter ronrapp

    (@ronrapp)

    Finally got it working. Had to create a soft-link directory (ls -s directoryname) and use that in the .htaccess file. I tried a lot of other stuff and nothing else worked:
    RewriteRule ^archives/(.*).jpg /image_archives/$1.jpg
    RewriteRule ^archives/(.*).php /image_archives/$1.php

    But 2fargon’s idea is another one I had: just copy all the old Movable Type uploaded files from rapp.org/archives/ to rapp.org/wp-content/ Then I wouldn’t have to deal with this issue at all.
    Of course, I’d have to go through the mysql database and change all references of “rapp.org/archives/” to “rapp.org/wp-content/” Is that what you did, 2fargon?

    I changed my permalink structure to use “vault” instead of “archives”, instead of changing/renaming occurences.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Broken images in Movable Type converted entries’ is closed to new replies.