View Full Version : I keep gettin this error in my logs
jfrovich
13-08-2006, 11:19/11:19AM
File does not exist: /home/support/public_html/[R=301,L]
Any idea why this is showing up?
Xenu shows nothing.. its been showing up for a while, but now i have time to deal with it..
WebSavvy
13-08-2006, 11:26/11:26AM
Have you implemented a 301 redirect in .htaccess? If so, it looks like it was done improperly.
That's an error for a 301 for some file living off root -- probably index(.html / .php/ .shtml) because you did a forward from non-www to www (and it was done incorrectly).
There's lots of codes posted here for doing 301s, have a look at them and compare them to what you're currently using.
jfrovich
13-08-2006, 11:40/11:40AM
When i get home
ill check and then if needed post my .htaccess file..
thanks
g1smd
13-08-2006, 11:47/11:47AM
The file that that refers to should be linked to as just "/" whenever you link to the root from anywhere in your site....
jfrovich
13-08-2006, 20:24/08:24PM
this is my file
i believe i follow'd what was suggested to me here
AddHandler application/x-httpd-php .htm .html .shtml
# Prevent viewing of htaccess
<Files ~ "^\.ht">
order allow,deny
deny from all
satisfy all
</Files>
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^supportcave.com [NC]
RewriteRule ^(.*)$ http://www.supportcave.com/$1 [L,R=301]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(([^/]+/)*)index\.html\ HTTP/
RewriteRule index\.html$ http://www.supportcave.com/%1 [R=301,L]
im thinking this is the issues
RewriteRule index\.html$ http://www.supportcave.com/%1 [R=301,L]
%1 maybe is should be $1
WebSavvy
13-08-2006, 22:32/10:32PM
Yes, the ending should be $1
What that is at the end is telling the rule to catch everything following the end of the domain -- it's the variable that's needed for it to work.
Using %1 is probably the issue. Change it and then see.
Also, you don't need to have that bit in there to stop people from viewing your .htaccess file -- because they can't view it anyway.
The "." before the file name means it lives on the backend of the server as a system file and is not web accessible.
You can create any file that begins with a dot "." and it won't be web accessible.
Example, make a file on your site called .bak
which is normally used for a backup file extension -- once the "." dot is in front of the file the server reads it as a system file that it automatically protects and it's not viewable by anyone not even you, unless you are inside your FTP client or your CPanel.
Then try to access the .bak file from your browser by putting in the url path. Note, you can't see the file, can you? :D
jfrovich
13-08-2006, 22:55/10:55PM
Thanks savvy1
i removed the viewing your .htaccess file
but im still getting this error
File does not exist: /home/support/public_html/[R=301,L]
is this line correct
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(([^/]+/)*)index\.html\ HTTP/
RewriteRule index\.html$ http://www.supportcave.com/$1 [R=301,L]
WebSavvy
13-08-2006, 23:31/11:31PM
That doesn't look correct, no. The first line needs to have the domain name there because otherwise it doesn't have any value to match the pair with.
The first line in the rule ( ^ ) is telling it this is the start of where the "matching" begins ... and this bit [A-Z] means for all pages regardless of what letter they start with, and all folders regardless of what letters they start with.
This rule isn't one I use and it doesn't look as though it's formatted properly. If all you're trying to do is forward from non-www to www all you need to add is this:
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\.supportcave\.com [NC]
RewriteRule ^(.*)$ http://www.supportcave.com/$1 [R=301,L]
jfrovich
14-08-2006, 00:10/12:10AM
Originally posted by savvy1
That doesn't look correct, no. The first line needs to have the domain name there because otherwise it doesn't have any value to match the pair with.
The first line in the rule ( ^ ) is telling it this is the start of where the "matching" begins ... and this bit [A-Z] means for all pages regardless of what letter they start with, and all folders regardless of what letters they start with.
This rule isn't one I use and it doesn't look as though it's formatted properly. If all you're trying to do is forward from non-www to www all you need to add is this:
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\.supportcave\.com [NC]
RewriteRule ^(.*)$ http://www.supportcave.com/$1 [R=301,L]
K i fixed that one up
the other one is to redirect the index.html to the domain
i got it here
http://www.ihelpyou.com/forums/showthread.php?s=&threadid=21465&perpage=10&highlight=index.html&pagenumber=3
IF you have already got some www.domain.com/index.html entries picked up by search engines, then you SHOULD also set up a separate 301 redirect from index.html to / like this:
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(([^/]+/)*)index\.html\ HTTP/
RewriteRule index\.html$ http://www.example.com/%1 [R=301,L]
WebSavvy
14-08-2006, 01:02/01:02AM
hmmm ... well, that code isn't one that I'm familiar with to be able to advise you of anything with regard to that one way or the other.
Maybe g1 can shed some more light on this?
jfrovich
14-08-2006, 01:10/01:10AM
found some info here
http://www.webmasterworld.com/forum92/4666.htm
and
http://www.webmasterworld.com/forum92/5124.htm
g1smd
16-08-2006, 20:05/08:05PM
>> The first line needs to have the domain name there <<
No. It does not. The selector is THE_REQUEST not HTTP_HOST in this one.
I'm thinking that the second line should actually be:
RewriteRule ^(.*)index\.html$ http://www.example.com/$1 [R=301,L]
jfrovich
16-08-2006, 20:58/08:58PM
cool
i try that thanks..
im trying to get rid of all my server log errors
jfrovich
16-08-2006, 21:18/09:18PM
this their a different way to do this
RewriteRule ^(.*)index\.html$ http://www.example.com/$1 [R=301,L]
File does not exist: /home/support/public_html/[R=301,L]
can i use this instead
[L,R=301]
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.