Site Hacked Help

Associate
Joined
28 Jun 2005
Posts
1,356
Hi. One of the sites I run has a Joomla front-end that's been hacked so the site's down. Doing a restore at the moment, but in the meantime I want to redirect people to another place. I'm pretty clueless when it comes to this sort of stuff so was hoping someone can help me out. Currently the site has an index.php file which I'm assuming is used to direct people into the Joomla content. Is there anyway I can disable that and just put an index.html file in there that directs people elsewhere? I did try sticking the code below but it just pointed you to the directory listing of the domain, rather than sending them elsewhere.

index.html

<meta http-equiv="refresh" content="2;url=http://www.myotherwebsite/forum">


Any help deeply appreciated.
 
If you download the configuration.php from the server, and open it into a text editor, and change this:

Code:
$mosConfig_offline = '0';
to this:

Code:
$mosConfig_offline = '1';

Re-Upload it to your server. Alternative, if you have a Backend editor, use that.

Should put the site into matainence mode for you, whilst you work on it.
 
Failing that, at the top of your PHP page:

PHP:
<?php
Header( "Location: http://www.myotherwebsite/forum" );
?>
 
Rename your existing index.php to something like index-temp.php.

Then create a new index.php file, and in the <head></head> section put:

<meta http-equiv="refresh" content="0;url=http://www.myotherwebsite/forum">

That should redirect anyone hitting the home page of your site.

Otherwise you can use the .htaccess file to control redirects with modrewrite I think.

Rgds
 
or.. create a .htaccess (assuming it's an Apache webserver) and use:
Code:
Redirect 302 /oldpage.html http://www.example.com/newpage.html
 
Back
Top Bottom