I am trying to help a friend with their joomla site. When you do a Google search for the site it comes up fine, but when you click on the main link it redirects to a spam site. My research online says this is likely a conditional redirect in the .htaccess file.
How do I fix that for them?
Also, I tried to ftp to their site but certificates come up and says "hostname does not match certificate" and my login fails.
Please help.
Conditional redirect hack (Google) fix?
Moderators: mandville, General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant / FPA - 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.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant / FPA - 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.
-
- Joomla! Apprentice
- Posts: 10
- Joined: Tue Sep 15, 2020 4:07 pm
- Rondeb
- Joomla! Guru
- Posts: 623
- Joined: Mon Dec 02, 2013 12:14 pm
- Location: Meschede - Germany
- Contact:
Re: Conditional redirect hack (Google) fix?
Hello,
via the file manager of your hosting you can also rename .htaccess to htaccess.txt
And in the backend of joomla you must turn off url friendly urls.
Clean your cache of je site and browser, and see if the problem is solved!
Greatings Ron
via the file manager of your hosting you can also rename .htaccess to htaccess.txt
And in the backend of joomla you must turn off url friendly urls.
Clean your cache of je site and browser, and see if the problem is solved!
Greatings Ron
-
- I've been banned!
- Posts: 13639
- Joined: Sun Jul 05, 2009 3:30 am
- Location: Canberra, Australia
Re: Conditional redirect hack (Google) fix?
A few words of caution about this recommendation.
By default, J! ships with a file named htaccess.txt; it's a "template" (if you would like to describe it that way) for a vanilla-flavoured, "no frills" .htaccess file. If I were you, I would not replace the file htaccess.txt with something else (or something broken). I would, instead, rename .htaccess as something like htaccess.broken (or htaccess.old) or something like that instead.
BTW, J! ships with a several of these "no-frills" files that are replaced/overwritten when you update J! (see more information about them here >>> viewtopic.php?f=48&t=970181 <<<).
Again this is not exactly true. I agree that, if you are using Apache and you want Use URL Rewriting = Yes then you turn on URL Rewrite. And, yes, the way to enable URL rewriting is with the file .htaccess. The file htaccess.txt—the normal one that comes with J! 3.x—has the necessary code for this and that's why you shouldn't delete it. However, the file htaccess.txt does not do anything unless you rename it or replace the file .htaccess with the contents of that file.
I hope this makes some sense.
![Cool 8)](./images/smilies/icon_cool.gif)
-
- Joomla! Apprentice
- Posts: 10
- Joined: Tue Sep 15, 2020 4:07 pm
Re: Conditional redirect hack (Google) fix?
As it happens, I just cleared the site cache from admin page and now the links are working in Google searches.
Do you think I have solved the problem or will it come back?
Do you think I have solved the problem or will it come back?
- leolam
- Joomla! Master
- Posts: 20652
- Joined: Mon Aug 29, 2005 10:17 am
- Location: Netherlands/ Germany/ S'pore/Bogor/ North America
- Contact:
Re: Conditional redirect hack (Google) fix?
Link to your site?
Leo![Cool 8)](./images/smilies/icon_cool.gif)
Leo
![Cool 8)](./images/smilies/icon_cool.gif)
Joomla's #1 Professional Services Provider:
#Joomla Professional Support: https://gws-desk.com -
#Joomla Specialized Hosting Solutions: https://gws-host.com -
#Joomla Professional Support: https://gws-desk.com -
#Joomla Specialized Hosting Solutions: https://gws-host.com -
- Webdongle
- Joomla! Master
- Posts: 44175
- Joined: Sat Apr 05, 2008 9:58 pm
Re: Conditional redirect hack (Google) fix?
Is it just the link in the search results that redirects or if you directly access your site?
What security do you have on your pc?
What security do you have on your pc?
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".
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
- leolam
- Joomla! Master
- Posts: 20652
- Joined: Mon Aug 29, 2005 10:17 am
- Location: Netherlands/ Germany/ S'pore/Bogor/ North America
- Contact:
Re: Conditional redirect hack (Google) fix?
@bill0287 if you want help answer to our questions
Leo![Cool 8)](./images/smilies/icon_cool.gif)
Leo
![Cool 8)](./images/smilies/icon_cool.gif)
Joomla's #1 Professional Services Provider:
#Joomla Professional Support: https://gws-desk.com -
#Joomla Specialized Hosting Solutions: https://gws-host.com -
#Joomla Professional Support: https://gws-desk.com -
#Joomla Specialized Hosting Solutions: https://gws-host.com -