Forum Moderators: phranque
I think I have these issues at least:
1. Someone said I am not returning a proper 404? I am currently directing people who type in invalid pages to a custom 404 page which works fine but maybe a server header issue?
2. When you remove a folder permanently -like I did - what are best practices? Just direct to the 404 custom page or return a code somehow? and why?
--- .htaccess ------
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain\.com$ [NC]
RewriteRule ^(.*)$ [domain.com...] [R=301,L]
AuthName domain.com
ErrorDocument 403 /v-web/errdocs/403.html
ErrorDocument 401 /v-web/errdocs/401.html
ErrorDocument 500 /v-web/errdocs/500.html
ErrorDocument 400 /v-web/errdocs/400.html
ErrorDocument 404 [domain.com...]
Redirect 301 /web-site-design.shtml [domain.com...]
Redirect 301 /web-site-promotion-services.shtml [domain.com...]
----------------
Does anyone have good resources to help me make sure the .htaccess is setup right and so I know it is working so Google can crawl regularly and deeply?
Thanks!
Certainly, you are not. This syntax will return a 302-Moved Temporarily status, as described in the ErrorDocument documentation [httpd.apache.org]:
ErrorDocument 404 http://www.domain.com/404error.htm
ErrorDocument 404 /404error.htm
ErrorDocument 404 /v-web/errdocs/404.html
> When you remove a folder permanently -like I did - what are best practices?
ErrorDocument 410 /v-web/errdocs/410.html
Redirect gone /path_to_removed_folder_or_file
The folder is indeed gone and all the web pages inside the subdomain.
If I don't use your code for folder gone, won't they just get a regular 404 error code and my new changed 404 missing resource custom error page? Isn't that enough? so Google will remove this from their index?
I guess I would like to understand why folder permanenly gone is better then document not found and how that relates to SEO and indexing.
thanks.