0

I just migrated a Magento2 site from a cloud server to my localhost to do some developer work on. I have everything I need installed and ready to go. I am just trying to redirect the Base-URls. I have already went into the command line and redirected both base and secure urls like this.

php bin/magento setup:store-config:set --base-url="http://localhost/upperlimitsinc/"

After changing the url I checked PHPMyAdmin and it shows that it has changed but when I go to the site url I get a 404 and not from Magento. Everything is running on MAMP.

404 ERROR: The requested URL /upperlimitsinc/ was not found on this server.

7
  • you try reindex command Commented Aug 5, 2020 at 16:50
  • Ok I figured this out. I need to change my URL to url="localhost/httpd" file path. I have the Store working now. However, for admin panel I do not have working. I am getting localhost refuses to connect.
    – Jonathan
    Commented Aug 5, 2020 at 17:02
  • what's error show in admin panel? Commented Aug 5, 2020 at 17:10
  • This site can’t be reachedlocalhost refused to connect. Try: Checking the connection Checking the proxy and the firewall ERR_CONNECTION_REFUSED
    – Jonathan
    Commented Aug 5, 2020 at 17:15
  • check this link - magento.stackexchange.com/questions/91087/… Commented Aug 5, 2020 at 17:38

3 Answers 3

2

After update your base url from your local, you need to run: php bin/magento setup:upgrade

1

use 127.0.0.1 instead of localhost.

Maybe this link help you feather - How to fix Magento 2 2.0.0-RC Admin page not found after installation and https://magecomp.com/blog/fix-404-error-page-not-found-admin-url-magento-2/

Thanks

0

Ok after spending so much time trying to figure this out. This is what I did.

  1. Changed the url to the correct file path. http://localhost/httpdocs/
  2. Went to phpMy Admin and changed core_config_data table configIDS: 1. rewrites, 5.frontend and 6.adminhtml to 0.
  3. run php/bin magento setup:upgrade
  4. run php/bin magento setup:dicompile
  5. Delete all folders under pub/static Delete var/cache Delete var/composer_home Delete var/generation Delete var/page_cache Delete var/view_preprocesse
  6. run php bin/magento setup:static-content:deploy.

And that worked.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.