• Resolved ilatirina

    (@ilatirina)


    Hi,
    I have created a WP website on localhost using MAMP. Many days of work and I finally decided to transfer website from localhost to my domain. However, I have changed url in General setting and now I cannot access dashboard of WP website. I do have access to phpMyadmin and I changed site url and home back to what I had before https://localhost:8888/example but it is still not working.

    I have also added the following lines to config.php file that I found in MAPM directory:
    define(‘WP_HOME’,’https://example.com’);
    define(‘WP_SITEURL’,’https://example.com’);

    Can you please help me to resolve this issue as I am panicking that all my work will be lost and I can’t recover all the files.

    Many thanks,
    Irina

Viewing 10 replies - 1 through 10 (of 10 total)
  • I had a similar problem and had help to fix it.
    Stupidly I copied and pasted those two lines, with no adjustment. They need to be adjusted for localhost and should read …..’https://localhost’
    Go back to config file and rewrite those two lines, then when you’re ‘back in’ delete them.
    If like me you’re concerned about changing to https, then look into Simple SSL an available plugin.

    @ilatirina

    If you have changed the URLs in the site url and home fields in the wp_options table back to the way they were (the url you show is correct for the default MAMP settings on the Mac OS) then remove the two defines you added to the wp-config file as it is overriding the database setting.

    Cheers!
    Lyle

    Thread Starter ilatirina

    (@ilatirina)

    Thanks for your reply.

    I actually used http:/localhost…but it still didn’t work…
    Totally loosing my hope to recover all my work(

    Thread Starter ilatirina

    (@ilatirina)

    Thanks for your reply.

    I removed it but still couldn’t access it. Any other suggestions how to fix it?

    Thank you!

    Irina

    • This reply was modified 8 years, 3 months ago by ilatirina.

    In your initial post, you say that example is the name of the folder withing htdocs where your WordPress install is located. If this is correct and you are using the default MAMP settings on the latest version for the Mac OS, 4.0.6, then the siteurl and home fields in wp_options is correct, that is, https://localhost:8888/example

    What do you get when you enter just https://localhost in your browser?
    What do you get when you enter just https://localhost:8888 in your browser?
    From the MAMP control panel, select Open WebStart Page … what is the url that is displayed in your browser?

    • This reply was modified 8 years, 3 months ago by snifflevalve. Reason: typo
    Thread Starter ilatirina

    (@ilatirina)

    Hi,

    When i enter just localhost it gives me a blank page. When I enter localhost:8888 i get an index of my websites. I have 3 websites including the one I can’t access. Two other ones are working fine.

    Thanks

    That is all fine, so are you not able to log in at https://localhost:8888/example/wp-admin or https://localhost:8888/example/wp-login.php ?

    Thread Starter ilatirina

    (@ilatirina)

    I can’t log in using both links…

    Thread Starter ilatirina

    (@ilatirina)

    ok, i deleted mamp then installed again and restored my backed up files. Looks like i had a problem with plugins so I deleted them and add them back one by one later. It is all working now.. phew))Thanks all for your help!

    Dear Ladies and Gentlemen

    We have a Donmain (DatabaseName – repress.com and database host) which does not work withe wordpress.

    I would be very glad if they could help me.Thanks in advance.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Cannot access dashboard of localhost after changing URL’ is closed to new replies.