Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
Old 2008-08-06, 11:46 PM   #1
cd34
a.k.a. Sparky
 
cd34's Avatar
 
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
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:
<base href="http://www.yoursite.com/">
or making sure that all of your links have absolute relative links:

Code:
<a href="/file.html">
<img src="/images/file.jpg">
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.
__________________
SnapReplay.com a different way to share photos - iPhone & Android
cd34 is offline   Reply With Quote
Old 2008-08-07, 12:36 AM   #2
Useless
Certified Nice Person
 
Useless's Avatar
 
Join Date: Oct 2003
Location: Dirty Undies, NY
Posts: 11,268
Send a message via ICQ to Useless
Quote:
Originally Posted by cd34 View Post
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?
__________________
Click here to purchase a bridge I'm selling.
Useless is offline   Reply With Quote
Old 2008-08-07, 07:52 AM   #3
LD
wtfwjd?
 
LD's Avatar
 
Join Date: May 2007
Posts: 2,103
Quote:
Originally Posted by cd34 View Post
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:
<base href="http://www.yoursite.com/">
or making sure that all of your links have absolute relative links:

Code:
<a href="/file.html">
<img src="/images/file.jpg">
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!!
__________________
Artisteer Wordpress Theme Generator Create Custom Themes!
My Little Network
LD is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:09 PM.


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