WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Can't access wp-admin after changing wp url in localhost (4 posts)

  1. herrzeba
    Member
    Posted 5 months ago #

    hI!

    I'm on Mac. I installed MAMP and created localhost8888 where I worked on my new site using mesocolumn theme. It took me a lot of time of learning to get it to the shape I wanted. I installed plugins, made customisations, created pages and two posts.

    I wanted to migrate to server and after reading online tutorials I changed my website url in wp-admin from http://localhost:8888/sebastianjasterwp/ to http://www.sebastianjaster.com (a domain I own that used to be on weebly.com). Then everything broke. I wasn't able to access wp-admin, since I changed url. I googled it, changed phpAdmin for url and home back to http://localhost:8888/sebastianjasterwp/ and now I can only see home page, no menu links are working. I can access wp-admin, but it doesn't allow my passoword. I changed it in phpadmin wordpress database and still nothing. When I click on "lost your password?" it gives me "The requested URL /index.php was not found on this server."

    It's a mess. After that I discovered I could have wp installed on my server. So I did. It's too complicated to me to migrate from localhost to live server, so I could just repeat the steps I made while on localserver. It would be easier just to install same plugins and copy posts/pages. BUT now I can't, since I can't access wp-admin. I tried ading url/home in wordpress config.php, but without luck.

    Please help! I know my site exists on my computer, but I can't access it. I tried to find solution on forums, but no luck either.

    UPDATE: When I click on a menu link it gives me: Not Found "The requested URL /index.php was not found on this server." I still have index.php and other files, but I don't have any backups.

  2. vrazer
    Member
    Posted 5 months ago #

    It sounds like either your MAMP virtual host is goofed up or your WordPress settings to change the URL back via phpMyAdmin (the wp_options table) didn't take.

    Pay attention to the URL in the address bar when you visit the home page vs clicking links. If the URL is changing back and forth between the two or if you view the source of the site and see a different URL in the source code than you're using to view the site, then you have a WordPress install that is half wired to one domain and half wired to another.

    Otherwise, since you're getting 404 errors when you click the links, you either have an htaccess problem or your MAMP is improperly configured (e.g. pointing the domain to the wrong folder).

  3. herrzeba
    Member
    Posted 5 months ago #

    Thank you for your help, Vrazer.

    I've found SOLUTION and I hope it can help people in similar situation.

    I used Emergency Password Reset Script. I managed to reset my password and login to wp-admin. I could then access all my pages from page/post editor and copy them to my new server installation of WordPress. I was not able however to access my webpage via local server, but that wasn't that important in my case.

  4. vrazer
    Member
    Posted 5 months ago #

    Awesome, herrzeba.

    Glad you got it fixed.

Reply

You must log in to post.

About this Topic