WordPress.org

Ready to get started?Download WordPress

Forums

Case of the disappearing images (10 posts)

  1. richards1052
    Member
    Posted 8 years ago #

    I recently migrated from Typepad to WordPress. In order to maintain continuity bet. the two installations, Carthik & I, when we did the post & image import into WP, mirrored the same foldername & filepath/structure for WP as I had in TP. Carthik also created mod_rewrite rules that converted old format Typepad permalink names into WP permalinks in order to allow visitors using old links to reach those posts in the WP blog. He also wrote rules regarding my old image files.

    I may've accidentally wiped out those mod_rewrite rules. So Carthik rewrote them & now the permalinks are working fine.

    But all my old images have disappeared. All I see on the pg. are hyperlinks with the filename. To see an example, follow this link:
    http://www.richardsilverstein.com/tikun_olam/2005/05/marcy-silverste/

    where you'll see the hyperlink for this image (& an error msg. if you try to follow it):
    http://www.richardsilverstein.com/tikun_olam/images/tilliesilverstein8kids_tp_1.jpg
    I'm guessing that this was the old Typepad filepath. When Carthik set up my WP installation he DID create a tikun_olam/images folder and this image is in that folder. But it won't display.

    It appears that the image is also located at
    http://www.richardsilverstein.com/photos/uncategorized/tilliesilverstein8kids_tp_1.jpg
    and this link WILL display the image.

    The default image upload filepath I'm currently using is:
    http://www.richardsilverstein.com/photos/uncategorized/gees_anna_young_strips_talk_of_nation.jpg

    Can anyone tell me if there's a way you can think of to fix this? I don't know if it requires mod_rewrite rules or something much simpler (which is what I'm hoping).

  2. richards1052
    Member
    Posted 8 years ago #

    Why is it hardly anyone comments on mod_rewrite posts? Or is it just me they don't like? Just kidding. But I do think it'd be a good idea to recruit a new Support Maven who's expert at mod_rewrite. There are 1 or 2 Mavens here who do know it well, but the forum needs more imho.

    Anyway, I posted about this at webmasterworld.com & one of the members wrote a few lines of rules & now just about all images are displaying. Phew, what a load off my mind.

    If anyone should be converting fr. TP to WP & would like to see my rules send me an e mail & I'm happy to share.

  3. Mark (podz)
    Support Maven
    Posted 8 years ago #

    As I explained to you in an email, mod_rewrite is a specialist area and I know of only 2 people who can fairly easily produce rewrite rules. Unfortunately, neither frequent these forums and we can't "recruit" anyone - every bit of help here is offered freely by volunteers. No-one is paid anything for answering questions - even mavens.

    WordPress code is PHP, database code is SQL and rewrite rules belong in the world of apache. Each language is very very different and an expert in one could be a clueless newb in another. As you have found out, looking elsewhere is sometimes the option - and that is not a fault in WordPress, these forums or any lack of mavens - it's just the way it is.

    As for your rewrite rules, have you considered sharing them at the Codex ? that way you could spare someone else the frustrations you have gone through.
    http://codex.wordpress.org/Main_Page

  4. richards1052
    Member
    Posted 8 years ago #

    Thanks for that suggestion. I didn't know you could start your own Codex pg. or topic or whatever. I suggested to Carthik that he do something like what you mentioned above but he felt that each of these conversions is unique due to factors specific to a particular individual installation. Therefore, he wasn't sure it was worth writing it up.

    But I think it should be out there anyway. If something' s specific to my Typepad installation, then hopefully someone having a similar problem will be able to adapt Carthik & Justin's solutions to their own situation.

    BTW, I didn't mean to sound like I found fault with WP or the forums for not having a mod_rewrite expert among the support mavens. It was meant as a suggestion. If WP is to attract more conversion fr. TP to WP then I think it's imperative that there be more help available in the areas of permalink redirection, mod_rewrite, htaccess, image filename redirects, conversion, etc.

    You're certainly right that mod_rewrite isn't directly connected to WP but rather lies in the realm of the Apache server. But if someone like me can only get their blog functioning as they want it to using mod_rewrite then it becomes a WP problem by default. That is, unless one prefers to say to people like me--get through it by your own wits & those of any others you can scrounge up elsewhere on the web.

    And btw, I tried most of the various Codex suggestions about MT conversion to WP. They just didn't work for me for various reasons.

  5. richards1052
    Member
    Posted 8 years ago #

    Podz: I'm willing to try my hand at adding my mod_rewrite rules to the Codex. But could you help me figure out where they should go? I've read the Guidelines to contributing & I figured a good place to put them is in the same category as 'Importing from MT to WP ' ( http://codex.wordpress.org/Importing_from_Movable_Type_to_WordPress ) which is in both 'Installation' & 'Getting Started.' But I can't seem to find the right page from which to create the link to my new pg. Could you give me the link to the pg. in the same area/category where MT to WP Import is? That would help start me off...

  6. Mark (podz)
    Support Maven
    Posted 8 years ago #

    What you need to do first is create a new page under your username.

    All new pages have to be created this way, then they are looked over and checked by those that know much much more about what's in Codex and when all is good it is moved to a proper page. This is done for several reasons: to avoid repetition, for good organisation and to reduce the chance of someone seeing and acting upon incomplete information.

    So assuming you have registered, edit that page and just start adding your info. I'll tell Lorelle and MichaelH that you are working on this too.

  7. richards1052
    Member
    Posted 8 years ago #

    Thanks very much for that info. Under Codex contribution guidelines, I think it tells you to start the new pg. differently than what you mentioned above. So it's good to know what's the right way to do it.

  8. richards1052
    Member
    Posted 8 years ago #

    Let me make sure I understand how to start a new pg: I click on my username at the top of the pg, then "Discussion," then go to "User talk:Richards1052" & click on the "+" link? There I get a blank edit box. Is that where I start my article?

    I have only a little experience with editing wikis & not via the Codex so all this is a little new to me. I have read the guidelines though not in explicit detail yet.

  9. Mark (podz)
    Support Maven
    Posted 8 years ago #

    The Discussion Page is where people can leave notes for you.

    You have two ways. On your User Page, click Edit, then:
    - just type where you have
    or
    -create a link and use the new page you just linked to
    [[http://codex.wordpress.org/User:Richards1052/Rewrite My Rewrite Rules]]

    Using the second methods means you can keep your User page clear for an introduction (and whatever else) while you create the Rewrite page.

  10. Lorelle
    Member
    Posted 8 years ago #

    Thanks to Podz and everyone for helping on this. We got him all set up and ready to go.

    While the Codex can be intimidating, it can also be a lot easier to use than disecting the WordPress Loop. ;-)

    In fact, it's a LOT easier to use than HTML stuff.

    Thanks Team!!!

Topic Closed

This topic has been closed to new replies.

About this Topic