Page 1 of 1

Xampp redirects Localhost url to my live url website.

PostPosted: 18. February 2015 16:15
by T3N
Hi guys,

Maybe this is some what of a beginner's question. I am running Prestashop on a server but needed to get it in a test environment. So i exported my database and imported it in xampp. Same for the files i copied it from my server and placed it on the localhost/test/ But when i go to localhost/test/ it redirects to my online website url why is this?

Thank you for helping me out!

Re: Xampp redirects Localhost url to my live url website.

PostPosted: 18. February 2015 17:28
by Altrea
Because of your Prestashop configuration. very common in the installation dialogue you have entered the url and for your local copy you need to change that information

Re: Xampp redirects Localhost url to my live url website.

PostPosted: 19. February 2015 14:56
by T3N
I needed to change the DB information in phpmyadmin, now it works. But it still redirects when i click one of the menu buttons on the website.. It redirects from Localhost/test/ to localhost/xampp/ any idea?

:D

Re: Xampp redirects Localhost url to my live url website.

PostPosted: 19. February 2015 16:37
by Altrea
No.
By default there is a redirect from http://localhost/ to http://localhost/xampp/ (done by the code in the \xampp\htdocs\index.php file), but not from http://localhost/test/