Pls Help me

alonbanay

Newbie
Joined
Mar 17, 2010
Messages
37
Reaction score
1
Hi

I have domain name that i installed on him a wordpress blog
this domain have more then 4000 pages on google
now all this pages are 404 pages

how i can redirect all this pages to my home page ?
i dont have any knowladge in this

pls help me

thanks
 
It's not a good idea, but you could do add the following meta tag in your 404 file
HTML:
<meta http-equiv="Refresh" content="5; URL=www.domain.com">

or

301 redirect in htaccess
 
The 404 is there to inform the search engine the page doesn't exist anymore, by using a 301 all of the pages will appear the same to the search engine and you could get duplicate content issues. A nice 404 page with a link to the homepage would be better and pass pagerank too.
 
how i can make 404 page with a link to the homepage ?
can you send me sample code or something ?
 
Code:
<html>
<head><title>Page not Found!</title</title></head>
<body>
<h1>Sorry Page Not Found</h1>
<p>Why not try our homepage <a href="index.html">here</a></p>
</body>
</html>
 
Thanks for all your help :)

my 404 page look like this :

<?php
/*
HeatMap Theme 3
Author: Stuart Wider
Copyright: Stuart Wider 2009
Website: HeatMapTheme.com
This file last updated: 20/08/2009
This file is part of HeatMap Theme

HeatMap Theme is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
any later version.
HeatMap Theme is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
?>

<?php get_header(); ?>
<!--
404.php
~~~~~~~~~~~~~~~~~~~~~~~~ ~~~ -->

<!--
Content of the page (inc comments and post details)
~~~~~~~~~~~~~~~~~~~~~~~~ ~~~ -->
<div id="page-body-wrapper">

<div id="content">

<div class="post-content">

<!--
Widget Area: [All Content] Above
~~~ -->
<?php dynamic_sidebar('[All Content] Above'); ?>

<h2 class="h2-simulate-h1-size-underline">404 Not Found</h2>

<p>Maybe you can find what you are looking for in one of these places...</p>

<?php include(TEMPLATEPATH."/common-sitemap.php");?>

</div> <!-- class="post-content" -->

</div> <!-- id="content" -->

<?php get_sidebar(); ?>
</div> <!-- id="page-body-wrapper" -->

<?php get_footer(); ?>
<!--
End of 404.php
~~~ -->

so where in this code i need to put :<meta http-equiv="Refresh" content="5; URL=www.domain.com"> ???
 
Back
Top