Xampp redirects Localhost url to my live url website.

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Xampp redirects Localhost url to my live url website.

Postby T3N » 18. February 2015 16:15

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!
T3N
 
Posts: 2
Joined: 18. February 2015 16:04
Operating System: win8

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

Postby Altrea » 18. February 2015 17:28

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
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

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

Postby T3N » 19. February 2015 14:56

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
T3N
 
Posts: 2
Joined: 18. February 2015 16:04
Operating System: win8

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

Postby Altrea » 19. February 2015 16:37

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/
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 91 guests