Hi All
I have google analytics installed on my site.
Everyday analytics is indexing and showing visitors to "/index.htm" but I do not have any such file present in the root folder of my website. Index.php is there.
Site is: www.aseawards.co.uk
I was hacked about 4 months ago and have implemented security measures to stop it but found ".htaccess" had been changed. Have now changed this back to original configuration before the hack.
Is there anywhere this page could be lurking that I cannot see? Any help would be appreciated.
Regards Andy
Latest News: (loading..)
non existant 'index.htm' showing on google analytics
Started by ase2007, Aug 30 2010, 15:52
2 replies to this topic
#1
Posted 30 August 2010, 15:52
#2
Posted 30 August 2010, 18:37
create a 404error.php file
ErrorDocument 404 /errors/404error.php
Use the below code of php for the 404error.php file
If you had an old URL say product10.html and now U have it as mobile-name.html.
The scenario is that either Search engine value of that page is lost.
To over come this we searched across and found this solution.
// Redirect visitors with a custom 404 error page.
$request=$_SERVER['REQUEST_URI'];
$urlarray=array("/index.html"=>“/index.php”);
if(array_key_exists($request,$urlarray))
{
$newplace=”http://”.$_SERVER['HTTP_HOST'].$urlarray[$request];
header(”HTTP/1.0 301 Moved Permanently”);
header(”Location: $newplace”);
header(”Connection: close”);
exit();
}
else
{
header(”HTTP/1.0 404 Not Found”);
}
ErrorDocument 404 /errors/404error.php
Use the below code of php for the 404error.php file
If you had an old URL say product10.html and now U have it as mobile-name.html.
The scenario is that either Search engine value of that page is lost.
To over come this we searched across and found this solution.
// Redirect visitors with a custom 404 error page.
$request=$_SERVER['REQUEST_URI'];
$urlarray=array("/index.html"=>“/index.php”);
if(array_key_exists($request,$urlarray))
{
$newplace=”http://”.$_SERVER['HTTP_HOST'].$urlarray[$request];
header(”HTTP/1.0 301 Moved Permanently”);
header(”Location: $newplace”);
header(”Connection: close”);
exit();
}
else
{
header(”HTTP/1.0 404 Not Found”);
}
Ask for osCommerce value addon suggestion tips for your site.
Check My About US For who am I and what My company does.
Check My About US For who am I and what My company does.
#3
Posted 31 August 2010, 15:25
many thanks for that satish.
Does that file go in the root folder of the site or is that an errors folder you mention?
regards Andy
Quote
create a 404error.php file
ErrorDocument 404 /errors/404error.php
ErrorDocument 404 /errors/404error.php
Does that file go in the root folder of the site or is that an errors folder you mention?
regards Andy














