Advertisement

Joomla on localhost

Need help with the Administration of your Joomla! 5.x site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
grezom
Joomla! Apprentice
Joomla! Apprentice
Posts: 46
Joined: Mon Feb 15, 2021 10:45 am

Joomla on localhost

Post by grezom » Tue Nov 12, 2024 7:58 pm

I backed up Joomla via Akeeba backup and ran this backup on localhost.
My problem is that on the localhost I am running Administration of my website, but when I enter the site, it redirects me to Joomla, which is online on the domain. I tried both mamp and xampp localhost, the result is the same.

https://www.capster.io/video/jbzD8IpQiyfq

Where could be the problem?

Advertisement
User avatar
JAVesey
Joomla! Hero
Joomla! Hero
Posts: 2727
Joined: Tue May 14, 2013 1:21 pm
Location: Cardiff, Wales, UK
Contact:

Re: Joomla on localhost

Post by JAVesey » Tue Nov 12, 2024 8:12 pm

grezom wrote: Tue Nov 12, 2024 7:58 pm I backed up Joomla via Akeeba backup and ran this backup on localhost.
My problem is that on the localhost I am running Administration of my website, but when I enter the site, it redirects me to Joomla, which is online on the domain. I tried both mamp and xampp localhost, the result is the same.

https://www.capster.io/video/jbzD8IpQiyfq

Where could be the problem?
I don’t see this on my local site.

Do you have any redirects set?
Is your “live site” in configuration.php empty?
John V
Cardiff, Wales, UK
Joomla 5.2.2 "live" site on PHP 8.3.2 and MariaDB 10.11.10 (with b/c plugin enabled)
Joomla 5.2.2 on MAMP Pro 7.1.3 with PHP 8.3.9 and MySQL 8.0.35 (with b/c plugin enabled)

grezom
Joomla! Apprentice
Joomla! Apprentice
Posts: 46
Joined: Mon Feb 15, 2021 10:45 am

Re: Joomla on localhost

Post by grezom » Tue Nov 12, 2024 8:15 pm

JAVesey wrote: Tue Nov 12, 2024 8:12 pm Is your “live site” in configuration.php empty?
yes.
https://www.capster.io/screenshot/FW1djvBO8HM6

User avatar
AMurray
Joomla! Master
Joomla! Master
Posts: 10326
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: Joomla on localhost

Post by AMurray » Tue Nov 12, 2024 9:24 pm

Try WAMPServer if the others don't work, although they should.

Strange, it's simply the site link from the Joomla Administrator that does to the live rather than localhost version. never had that happen to me with WAMPServer.
Regards - A Murray
General Support Moderator

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44747
Joined: Sat Apr 05, 2008 9:58 pm

Re: Joomla on localhost

Post by Webdongle » Wed Nov 13, 2024 1:36 am

.htaccess has a redirect?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

grezom
Joomla! Apprentice
Joomla! Apprentice
Posts: 46
Joined: Mon Feb 15, 2021 10:45 am

Re: Joomla on localhost

Post by grezom » Wed Nov 13, 2024 7:41 am

Webdongle wrote: Wed Nov 13, 2024 1:36 am .htaccess has a redirect?
I've tried deleting the .haccess, I've also tried uploading from backup, and I've also tried the default one that comes with Joomla. It still redirects me to the live version.

It even redirects me as follows: localhost -> jazykove-kurzy-nitra.sk -> vages.sk

Joomla was originally on the domain jazykove-kurzy-nitra.sk but some time ago I put it under the domain vages.sk. It shouldn't have anything to do with localhost just for info.

What could be causing these redirects?

User avatar
sikumbang
Joomla! Ace
Joomla! Ace
Posts: 1591
Joined: Fri Aug 19, 2005 4:37 am
Location: earth
Contact:

Re: Joomla on localhost

Post by sikumbang » Wed Nov 13, 2024 12:02 pm

Try switching your template to Cassiopeia to check if this issue is related to the template or something else. If the issue persists, try unpublishing each module one by one, followed by the plugins, to see if the issue is related to a specific module or plugin
http://www.templateplazza.com - Joomla Extensions and Templates

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44747
Joined: Sat Apr 05, 2008 9:58 pm

Re: Joomla on localhost

Post by Webdongle » Wed Nov 13, 2024 4:30 pm

Used to be a problem with Virtuemart a while ago. Perhaps run the fpa from the livesite and one of the volunteers might spot a 3rd party app that could be causing it?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

User avatar
ceford
Joomla! Hero
Joomla! Hero
Posts: 2900
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: Joomla on localhost

Post by ceford » Wed Nov 13, 2024 9:05 pm

Is it something to do with a hosts file? You can put an IP address in it along with the domains that use it. I am afraid I have forgotten how this is supposed to work!

User avatar
cmbay
Joomla! Explorer
Joomla! Explorer
Posts: 267
Joined: Thu Dec 31, 2009 11:53 pm
Location: Oregon, USA

Re: Joomla on localhost

Post by cmbay » Wed Nov 13, 2024 9:13 pm

ceford wrote: Wed Nov 13, 2024 9:05 pm I am afraid I have forgotten how this is supposed to work!
Here's a partial/sample listing from my /etc/hosts file:

Code: Select all

# Point localhost.com to this machine.
# 127.0.0.1 is the loopback address for localhost.
127.0.0.1 localhost
127.0.0.1 mylocaldomain1
127.0.0.1 mylocaldomain2
Charles

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44747
Joined: Sat Apr 05, 2008 9:58 pm

Re: Joomla on localhost

Post by Webdongle » Wed Nov 13, 2024 9:26 pm

Comment out
127.0.0.1 mylocaldomain1
127.0.0.1 mylocaldomain2
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

Advertisement

Post Reply

Return to “Administration Joomla! 5.x”