简体   繁体   中英

How can i fix URL rewrite problem with Local copy of Magento store?

I have installed a new copy of Magento on my mac with MAMP - it's all working fine, I then copied my template files and modules that i created. All good. then we I go to import the live websites SQL database all the products appear and all the custom elements - however if i then click on a product that is on the home page (Or any other page for that matter) the URL's are wrong.

I have changed the base URL in the database to reflect my local install.

For reference my local copy is set up as so: http://localhost:8888/magento which works fine. now when i click on a product (from the home page) it tries to go to http://localhost:8888/product-name-here - so it misses off the /magento/ part.

But even if i make manually type in http://localhost:8888/magento/product-name-here i get a 404 not found error (and not a magento 404 error?)

Any ideas how to fix this?

确保用于安全和不安全的基本URL包含子目录(magento)。

http://localhost:8888/magento

Please update your secure and insecure url in magento admin like these http://localhost:8888/magento/.Please make your catalog rewriting is set to No. After that please update indexing in admin. This is routing problem.please don't forget to update indexing in admin after you have done these settings.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM