Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Programming & Scripting (http://www.greenguysboard.com/board/forumdisplay.php?f=15)
-   -   404 Trap ads (http://www.greenguysboard.com/board/showthread.php?t=48307)

LD 2008-08-03 04:47 PM

404 Trap ads
 
Many sponsors provide a link code for a "404 Trap ad". I think I know what this is supposed to do, but I am not sure where to put the link. Do I install this on my host server somewhere?

cd34 2008-08-03 04:50 PM

Typically, you do something like

Code:

ErrorDocument 404 http://url.com/withreferreringcode
in your .htaccess

LD 2008-08-03 05:11 PM

Ahhhh.....good ol' .htaccess.

Thanks! (ps, and it's working...:) )

justbondage 2008-08-03 08:20 PM

How do search engines feel when they spider a sitemap, come across a 404 and go to another site?

I have no real reason to think it, but I would assume something like that would have a negative effect on how search engines look at your site. Does anyone know either way?

Tekster 2008-08-03 09:04 PM

How about making your own 404 page? I think that would work better. Any thoughts?

balls_deep 2008-08-04 09:43 AM

Quote:

Originally Posted by TekAngel (Post 413195)
How about making your own 404 page? I think that would work better. Any thoughts?

You will always have more success making your own 404 pages, at least a surfer hasn't seen it before.

Useless 2008-08-04 04:26 PM

Maybe a sponsor could give you a toolbar installer while you're at it.
|pcsucks|

poornpig 2008-08-05 03:15 AM

If the 404 Error Page is set up in the .htaccess, the request returned already a 404.

For a crawler of a searchengine it would look like this:

Host example.com
GET /something.html HTTP/1.1
-> 404


....

Now it is the question if the crawler fetches the 404 error page. I have not noticed, that google or yahoo are doing this.
Google does it only if you use the webmaster tools and verify your domain. This is to check if your server does return the 404 correctly.

A normal client (not everyone) would see the same as above but it would render the html send by the webserver.

this would be the 404 error page, which is send by the webserver.

Now i could ask why do you have 404? is it good not to dispaly an error message?

virgohippy 2008-08-05 04:47 PM

I prefer to turn off indexes in htaccess:

Options -Indexes

and let the error message display. If I accidentally delete a submitted page from my server I'd rather a reviewer see a 404 error then redirect.

LD 2008-08-06 09:15 AM

Thanks for the info....I like the idea of making my own. I have the sponsor one up for now, but want to make one on my own domain. I am thinking of something like a "whoops" page with a small directory of links back to categories on my list. If anyone has one to show me to get some ideas, I would love to see one.

Lemmy 2008-08-06 10:59 AM

Quote:

Originally Posted by LusciousDelight (Post 413657)
Thanks for the info....I like the idea of making my own. I have the sponsor one up for now, but want to make one on my own domain. I am thinking of something like a "whoops" page with a small directory of links back to categories on my list. If anyone has one to show me to get some ideas, I would love to see one.

Here's how I do it on Quantum Porn and Planet Of Porn.

I've also experimented with redirects to sponsor, but it hasn't produced much in the way of sales.

LD 2008-08-06 12:02 PM

Quote:

Originally Posted by Lemmy (Post 413687)
Here's how I do it on Quantum Porn and Planet Of Porn.

I've also experimented with redirects to sponsor, but it hasn't produced much in the way of sales.

Very nice...especially the Quantum Porn one...

Now I have something else to work on...|angry|

Mr Spock 2008-08-06 02:53 PM

Quote:

Originally Posted by Lemmy (Post 413687)
Here's how I do it on Quantum Porn and Planet Of Porn.

I've also experimented with redirects to sponsor, but it hasn't produced much in the way of sales.

Nice Lemmy - beats the standard error page. Have you noticed any sales off your 404 pages or is it just a nice to have

Lemmy 2008-08-06 05:11 PM

No sales that I've been able to track, but if there is to be an error page it might as well have something useful for the surfer to click on.

LD 2008-08-06 11:00 PM

Lemmy, you gave me some ideas and I came up with...

http://www.lusciousdelights.com/error404.php

anything need changing?

cd34 2008-08-06 11:46 PM

A potential note: If you are serving the file locally, based on the assumption that the 302 response is a bad thing to hand google for a few reasons... unintentional page scraping and potential duplicate content penalties.

So, if you do:

Code:

ErrorDocument 404 http://site.com/page
You might end up getting a dupe penalty or scraping yourself. What you really want is:

Code:

ErrorDocument 404 /error404.php
Now, when you do this, you will want to either put

Code:


or making sure that all of your links have absolute relative links:

Code:



Then, when you test things, make sure you do test a number of urls:

Code:

http://yoursite.com/asdfsadf
http://yoursite.com/asdfasdf/asdfasdf.html
http://yoursite.com/asdfasdf/asdfasdf/asdfasdf.html

What you want to check for here is to make sure that all links work, mouseovers, etc from each of the above paths.

Useless 2008-08-07 12:36 AM

Quote:

Originally Posted by cd34 (Post 413767)
What you want to check for here is to make sure that all links work, mouseovers, etc from each of the above paths.

What if I want a 404 page that creates more 404s? |loony|

Lemmy 2008-08-07 07:31 AM

Quote:

Originally Posted by LusciousDelight (Post 413765)
Lemmy, you gave me some ideas and I came up with...

http://www.lusciousdelights.com/error404.php

anything need changing?

Looks good to me, you keep the traffic and give them something useful to click on. |thumb

LD 2008-08-07 07:52 AM

Quote:

Originally Posted by cd34 (Post 413767)
A potential note: If you are serving the file locally, based on the assumption that the 302 response is a bad thing to hand google for a few reasons... unintentional page scraping and potential duplicate content penalties.

So, if you do:

Code:

ErrorDocument 404 http://site.com/page
You might end up getting a dupe penalty or scraping yourself. What you really want is:

Code:

ErrorDocument 404 /error404.php
Now, when you do this, you will want to either put

Code:


or making sure that all of your links have absolute relative links:

Code:



Then, when you test things, make sure you do test a number of urls:

Code:

http://yoursite.com/asdfsadf
http://yoursite.com/asdfasdf/asdfasdf.html
http://yoursite.com/asdfasdf/asdfasdf/asdfasdf.html

What you want to check for here is to make sure that all links work, mouseovers, etc from each of the above paths.

Thanks for that!!


All times are GMT -4. The time now is 11:56 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc