Using WAMP to test site, localhost redirects to live site

By | January 29, 2014

Using WAMP to test site, localhost redirects to live site when I migrated it using phpMyAdmin onto localhost WAMP server.

Migration was successful, allowing access into PrestaShop Back Office.  

However, in attempts to access Front Office, I would get redirected to the live site.

To resolve this redirect issue, I logged into the BO and adjust the following.

—————————————-
preferences > SEO & URLs

PS directory: /MyProject/

Shop domain name: localhost
Shop domain name for SSL: localhost

save
—————————————-

If you are receiving “Page not found” or /MyProject/en/ is blank, then a couple of things need to be done.

Step 1.)
Generate a new .htaccess file in BO, or copy/paste your existing one into root of your PrestaShop installation.

Step 2.)
Enable the rewrite_module for Apache on your WAMP Server, and restart Apache: Apache > Apache Modules > rewrite_module

Resource

localhost keeps being redirected: http://www.prestashop.com/forums/topic/211778-localhost-keeps-being-redirected/
“Page not found” with PrestaShop 1.4.8.2 on WAMP: http://www.prestashop.com/forums/topic/175273-page-not-found-with-prestashop-1482-on-wamp/
PrestaShop Blank Page: http://www.prestashop.com/forums/topic/10115-big-problem-blank-page/