Support » Fixing WordPress » All hrefs point to IP address

Viewing 11 replies - 1 through 11 (of 11 total)
  • Moderator t-p

    (@t-p)

    However, the moment you click on any link, it will redirect to the IP address.

    I don’t see that at my end.

    Please give an URL you see that.

    When you’re on http://brennabuscher.com -> scroll down a little bit -> select the center image (Kaldi), you will see it change to http://104.131.179.27/?post_type=projects&p=52

    Moderator t-p

    (@t-p)

    Yes, It does.

    Check the link to make sure that image is not linked that way.

    This is happening with all links on the website (other than the home page).

    I just verified the Kaldi one, and I see the following under my Pages – http://brennabuscher.com/wp-content/uploads/2017/01/coffecart.jpg

    So … something isn’t making sense here.

    Hello,

    You have to update your site_url and home value in wp_options table, from your IP -> domain name.

    Kindly check this documentation, might help you here – https://www.ostraining.com/blog/wordpress/site-url-and-home-url-wordpress/

    Thank you for your help! I will check in the database and get back with my results ASAP.

    All of the HREFs are still pointing to an IP address even though the database values are correct.

    mysql> SELECT * FROM wp_options WHERE option_name = 'home';
    +-----------+-------------+--------------------------+----------+
    | option_id | option_name | option_value             | autoload |
    +-----------+-------------+--------------------------+----------+
    |         2 | home        | http://brennabuscher.com | yes      |
    +-----------+-------------+--------------------------+----------+
    1 row in set (0.00 sec)
    
    mysql> SELECT * FROM wp_options WHERE option_name = 'siteurl';
    +-----------+-------------+--------------------------+----------+
    | option_id | option_name | option_value             | autoload |
    +-----------+-------------+--------------------------+----------+
    |         1 | siteurl     | http://brennabuscher.com | yes      |
    +-----------+-------------+--------------------------+----------+
    1 row in set (0.00 sec)

    In that case, you can check the theme files and posts, might be its all hard coded.

    I’ve grepped the entire codebase and everything is pointing to the domain 🙁

    Hope you checked the posts table too.

    By any chance are you using any cache plugin?

    It turns out that the wp_posts table is showing IP addresses!

    What is my best course of action in terms of changing all my posts from an IP address to my domain name?

    EDIT – Nevermind! I got it! I downloaded the Velvet Blues URL Update Plugin and fix it!

    Thank you so much!

    • This reply was modified 1 year, 4 months ago by  wenindoubt.
Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘All hrefs point to IP address’ is closed to new replies.