var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
404 page and search engine
Rather than giving the standard 404 I thought I'll filled up my 404 pages with content.
For example, I could do:
ErrorDocument 404 /index.php
However, how would search engine see it? Will search engine "know" that the page is really just a 404 page?
If so, how do I prevent search engine from knowing that?
How do wordpress permalink do it?
.htaccess Tutorial - Error Messages - it seems that is the correct way. The SEs should know it is a 404 error page because you have designated it as such.
I have had to use
in some of my ASP pages for Google to be happy with the sitemaps though
Response.Status = 404
What should I do so I get the same effect with ErrorDocument 404 but with search engine never knows that it is a 404 error.
From what I can remember - you want the search engines to know and understand the 404 error. Why wouldn't you?
Say I have 120 articles. If all 404 pages become excerpts of related articles, I would have millions of web page as oppose to only 120.
Maybe it'll have a slight advantage in searchengine war.
can anyone say me wot will be the actual code in .htaccess.txt for displaying customized error pages
First off, although it's a common mistake, it's not .htaccess.txt , it's just .htaccess without any file extension as .htaccess actually is a file extension. To answer your question, open your .htaccess file, and insert
Originally Posted by
at the top.
ErrorDocument 404 /YOUR 404 PAGE.html
Host In Us Web Hosting Services |
www.hostinus.com Premium Enterprise Shared Web Hosting
Less than Customers per server! 80 Try us out! We want to earn your business
The search engine will see it as 404, because the server will send
Originally Posted by
HTTP/1.1 404 Not Found in the header. It doesnt matter if you have a custom error page or not, it will send the 404 header.
To prevent it, you can send status HTTP/1.1 200 OK.
robots.txt file would be able to restrict the searchengine activitiy in your site , this file would tell what to be indexed and what not to be.