|
|
|
|
||||||
| alt.internet.seo Internet search engines and related topics. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
I'm just wondering... when I try to remove a link from Google's index
I get refused on the basis of too many redirects, presumably because I have a custom 404, so I'm wondering if I remove the redirect in the ..htaccess file and then I thought, can I just comment this out, like you do in an html page or REM in DOS? BB -- http://www.crystal-liaison.com/adam-...t-i150456.html http://www.crystal-liaison.com/all-g...dren/cece.html http://www.crystal-liaison.com/all-t...-american.html |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
Big Bill wrote:
> I'm just wondering... when I try to remove a link from Google's index > I get refused on the basis of too many redirects, presumably because I > have a custom 404, so I'm wondering if I remove the redirect in the > .htaccess file and then I thought, can I just comment this out, like > you do in an html page or REM in DOS? Yup: # this is a comment in # an .htaccess file # :-) -- Els http://locusmeus.com/ accessible web design: http://locusoptimus.com/ |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
On Mon, 18 Sep 2006 09:19:21 +0200, Els <els.aNOSPAM@tiscali.nl>
wrote: >Big Bill wrote: > >> I'm just wondering... when I try to remove a link from Google's index >> I get refused on the basis of too many redirects, presumably because I >> have a custom 404, so I'm wondering if I remove the redirect in the >> .htaccess file and then I thought, can I just comment this out, like >> you do in an html page or REM in DOS? > >Yup: > ># this is a comment in ># an .htaccess file ># :-) Thanks Els. No need for a closing tag? BB -- http://www.crystal-liaison.com/adam-...t-i150456.html http://www.crystal-liaison.com/all-g...dren/cece.html http://www.crystal-liaison.com/all-t...-american.html |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
Big Bill wrote:
> On Mon, 18 Sep 2006 09:19:21 +0200, Els <els.aNOSPAM@tiscali.nl> > wrote: > >>Big Bill wrote: >> >>> I'm just wondering... when I try to remove a link from Google's index >>> I get refused on the basis of too many redirects, presumably because I >>> have a custom 404, so I'm wondering if I remove the redirect in the >>> .htaccess file and then I thought, can I just comment this out, like >>> you do in an html page or REM in DOS? >> >>Yup: >> >># this is a comment in >># an .htaccess file >># :-) > > Thanks Els. No need for a closing tag? # Nope ;-) -- Els http://locusmeus.com/ accessible web design: http://locusoptimus.com/ Now playing: Daniela Mercury - Dona Canô |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
Big Bill wrote:
> I'm just wondering... when I try to remove a link from Google's index > I get refused on the basis of too many redirects, presumably because I > have a custom 404, so I'm wondering if I remove the redirect in the > .htaccess file and then I thought, can I just comment this out, like > you do in an html page or REM in DOS? Is your custom 404 page sending a "404 Not Found" header? If a page is not sending a "404 Not Found" header Google will not remove the URL with the URL removal tool. It shouldn't matter whether it is a custom 404 page or not as long as it sends the right header. You can download the livehttpheaders extension for Firefox to check what kinds of headers a page is sending. You can send the 404 header with some PHP. There's a trick though -- PHP sometimes will send an incorrect "404 Ok" header, which requires different syntax to fix. I can look for the snippet if you need it. |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
Found the snippet:
If PHP as Apache module: <?php header("HTTP/1.0 404 Not Found"); ?> If PHP as CGI: <?php header("Status: 404 Not Found"); ?> See also http://us2.php.net/manual/en/function.header.php#66254 |
|
|
|
#7 |
|
Messages: n/a
Hébergeur: |
On Mon, 18 Sep 2006 14:44:16 -0400, z <nospam@no.invalid> wrote:
>Big Bill wrote: > >> I'm just wondering... when I try to remove a link from Google's index >> I get refused on the basis of too many redirects, presumably because I >> have a custom 404, so I'm wondering if I remove the redirect in the >> .htaccess file and then I thought, can I just comment this out, like >> you do in an html page or REM in DOS? > > >Is your custom 404 page sending a "404 Not Found" header? If a page is not >sending a "404 Not Found" header Google will not remove the URL with the >URL removal tool. It shouldn't matter whether it is a custom 404 page or >not as long as it sends the right header. > >You can download the livehttpheaders extension for Firefox to check what >kinds of headers a page is sending. > >You can send the 404 header with some PHP. There's a trick though -- PHP >sometimes will send an incorrect "404 Ok" header, which requires different >syntax to fix. I can look for the snippet if you need it. > I commented the line out in the .htaccess file so I'll try again with the url removal tool in a couple hours. BB -- http://www.crystal-liaison.com/adam-...t-i150456.html http://www.crystal-liaison.com/all-g...dren/cece.html http://www.crystal-liaison.com/all-t...-american.html |
|
|
|
#8 |
|
Messages: n/a
Hébergeur: |
On Mon, 18 Sep 2006 14:52:35 -0400, z <nospam@no.invalid> wrote:
>Found the snippet: > >If PHP as Apache module: > ><?php > header("HTTP/1.0 404 Not Found"); >?> > >If PHP as CGI: > ><?php > header("Status: 404 Not Found"); >?> > >See also http://us2.php.net/manual/en/function.header.php#66254 Thanks, but it ain't php! BB -- http://www.crystal-liaison.com/adam-...t-i150456.html http://www.crystal-liaison.com/all-g...dren/cece.html http://www.crystal-liaison.com/all-t...-american.html |
|
|
|
#9 |
|
Messages: n/a
Hébergeur: |
Big Bill wrote:
> On Mon, 18 Sep 2006 14:52:35 -0400, z <nospam@no.invalid> wrote: > >>Found the snippet: >> >>If PHP as Apache module: >> >><?php >> header("HTTP/1.0 404 Not Found"); >>?> >> >>If PHP as CGI: >> >><?php >> header("Status: 404 Not Found"); >>?> >> >>See also http://us2.php.net/manual/en/function.header.php#66254 > > Thanks, but it ain't php! If it's running on Apache, you can get it to execute PHP in any kind of file (as far as I know, although I've only done it with .html and .htm files). |
|
|
|
#10 |
|
Messages: n/a
Hébergeur: |
On Mon, 18 Sep 2006 19:06:39 GMT, Big Bill <kruse@cityscape.co.uk>
wrote: >On Mon, 18 Sep 2006 14:44:16 -0400, z <nospam@no.invalid> wrote: > >>Big Bill wrote: >> >>> I'm just wondering... when I try to remove a link from Google's index >>> I get refused on the basis of too many redirects, presumably because I >>> have a custom 404, so I'm wondering if I remove the redirect in the >>> .htaccess file and then I thought, can I just comment this out, like >>> you do in an html page or REM in DOS? >> >> >>Is your custom 404 page sending a "404 Not Found" header? If a page is not >>sending a "404 Not Found" header Google will not remove the URL with the >>URL removal tool. It shouldn't matter whether it is a custom 404 page or >>not as long as it sends the right header. >> >>You can download the livehttpheaders extension for Firefox to check what >>kinds of headers a page is sending. >> >>You can send the 404 header with some PHP. There's a trick though -- PHP >>sometimes will send an incorrect "404 Ok" header, which requires different >>syntax to fix. I can look for the snippet if you need it. >> > >I commented the line out in the .htaccess file so I'll try again with >the url removal tool in a couple hours. > >BB And I did, and it seems to have worked. The request didn't get the usual denial. It seems to be underway. Let's wait and see. BB -- http://www.crystal-liaison.com/adam-...t-i150456.html http://www.crystal-liaison.com/all-g...dren/cece.html http://www.crystal-liaison.com/all-t...-american.html |
|
![]() |
| Outils de la discussion | |
|
|