• blackop

    (@blackop)


    Thanks in advance, everyone. I really am in a pickle here, guys.

    My website started with wordpress. The GoDaddy applet installed it into the root directory. So my WP install is in the root. That said, I just created a new static-site and uploaded the files to the root of the webserver.

    I put a link on my site to index.php, which starts wordpress. But it won’t work. I looked all over the internet for a solution, and I couldn’t find anything short of reinstalling wordpress in to a seperate folder.

    I even called GoDaddy and spoke with them and they advised the same thing: seperate the WP installation into its own folder. However, I have so much information in my blog, I can’t lose it.

    Is there a way to link from a static HTML page to WP’s index.php in the same root folder?

    Again, many thanks.

Viewing 9 replies - 16 through 24 (of 24 total)
  • BibleStudies

    (@biblestudies)

    Ouch, I recently decided to use word press and learned how to have a static html page as my index in the same directory as the WP was in. I did that so I can test designs before recreating my site in WP. Watched a detailed youtube video on it how to do it. Searched wordpress static home page. I’ll switch switch over fully to WP when it is ready.

    If you were aiming to keep the static site and have a secondary WP site in the same root you needed to move WP into another directory. Of course you could have kept https://www.url.com as the static site, and https://www.url.com/home/ or what ever you have your permalink set to as the WP index home page. That could have worked.

    Since you moved WP already, as far as the photos it depends on which folder/s WP is trying to grab them from. Try googling wordpress finding image location to try to find a plug in for it.

    Otherwise, you will have to go back into WP admin, edit the pages and widgets, and re-upload the photos.

    Hopefully someone else has a better idea.

    Good luck.

    BibleStudies

    (@biblestudies)

    SwansonPhotos you’re right. Where is my mind tonight. He can get the image URL path by going to the blog/page and clicking view source as long as the person knows some coding.

    Pioneer Web Design

    (@swansonphotos)

    OR simple to a db query and replace text.

    Thread Starter blackop

    (@blackop)

    BibleStudies, no worries. I appreciate anyone’s help. ; ) I tried using one plugin to update the image file locations written by Blue Velvet, and it didn’t help. = ( I wish there was a plugin which updated the links to the images.

    SwansonPhotos,

    Thanks again! Okay, here is what I deduced today after starting fresh with a faux blog, and using 000webhost as the lab-room.

    Everything runs perfect except image file locations. After migration of files, I changed the URL’s WP uses for core files (all of this per the migration document), and updated permalinks to your example above. Pages are retained, posts, comments, etc… Only image files are gone.

    After viewing the source, they are indeed pointing to the old wp-content location in the root of the file server. So just as a test, I copied the existing wp-content foler, and uploaded it to the root (where my static HTML files are) and gave it a go. Voila! All image files can be seen.

    Post-migration, I uploaded new images, and it saved them in the new folder IE: /blog/wp-content.

    Is it okay to keep the wp-content (or at least honing it down to the image folder/files) in the root of the webserver? I only ask because I have over 1,000 images (I’m pretty sure), and I would hate to have to go into the database, one by one, and change their locations if I can simply keep the old images in a folder in the root.

    Again, many, many thanks! Also, here is a link to my test server if you need it: https://www.testforecho.freeiz.com. Again, I’m using 000webhost as my lab environment (it’s free!).

    Thanks!

    Thread Starter blackop

    (@blackop)

    Hey, guys!

    Just wanted to let everyone know that I tried using Blue Velvet’s plugin (URL Updater) again, and it worked like a champ! All of my image files have been changed correctly. Yay!

    The plugin seems to have a lot “good press” behind it. Is anyone aware of any issues with this plugin? Just wanted to make sure before I actually go to migrate the real blog, as opposed to the blog in my lab environment.

    Again, many thanks, guys! You rock!

    Pioneer Web Design

    (@swansonphotos)

    If you are extremely careful and fully understand these instructions, you can change the text string of the old URL to the new URL directly in the database. Do this wrong and you could really mess up the DB, so make sure you do a full backup first.

    Thread Starter blackop

    (@blackop)

    Thanks for the insight, SwansonPhotos!

    Yeah, it looks like the “URL-Updater” plugin by Blue Velvet touches the database as well. It is easier to use for someone like me who does not know anything concerning database manipulation. The GUI is straight-forward in its approach to find and replace…hence me moving forward with caution.

    I’ve tried it in the lab and it didn’t break my DB. Yay! Here is a link in case you’re interested: https://www.ads-software.com/extend/plugins/velvet-blues-update-urls/

    It also includes screenshots so you can see what I’m working with.

    Again, many, many thanks! I can’t stress how deeply I appreciate your help.

    Pioneer Web Design

    (@swansonphotos)

    You are welcome…thought – use your test environment to dust up on some basic database queries that can help fix things (like litter from broken plugins). I just used the update function to fix all the images here (after, of course, uploading all images to the appropriate folder from the blog that I split up into two blogs (again))…it took less than .1 seconds! (not the FTP part)

    I am also learning alot here…a challenge has always intigued me and when I don’t know, I look it up!

    Thread Starter blackop

    (@blackop)

    Swanson Photos,

    I just wanted to say thank you! I finished migrating my site, and it went well without a problem. All of this thanks to you, my friend.

    Thanks a ton!

    P.S. The plugin “search and replace” allowed me to update my picture links in the database very easily. I highly recommend the tool for noobs. ; )

Viewing 9 replies - 16 through 24 (of 24 total)
  • The topic ‘Linking to WP from Static HTML’ is closed to new replies.