Username: Save?
Password:
Home Forum Links Search Login Register*
    News: Keep The TechnoWorldInc.com Community Clean: Read Guidelines Here.
Recent Updates
[March 06, 2024, 02:45:27 PM]

[March 06, 2024, 02:45:27 PM]

[March 06, 2024, 02:45:27 PM]

[March 06, 2024, 02:45:27 PM]

[February 14, 2024, 02:00:39 PM]

[February 14, 2024, 02:00:39 PM]

[February 14, 2024, 02:00:39 PM]

[February 14, 2024, 02:00:39 PM]

[February 08, 2024, 10:26:18 AM]

[February 08, 2024, 10:26:18 AM]

[February 08, 2024, 10:26:18 AM]

[February 08, 2024, 10:26:18 AM]

[November 27, 2023, 06:32:12 PM]
Subscriptions
Get Latest Tech Updates For Free!
Resources
   Travelikers
   Funistan
   PrettyGalz
   Techlap
   FreeThemes
   Videsta
   Glamistan
   BachatMela
   GlamGalz
   Techzug
   Vidsage
   Funzug
   WorldHostInc
   Funfani
   FilmyMama
   Uploaded.Tech
   MegaPixelShop
   Netens
   Funotic
   FreeJobsInc
   FilesPark
Participate in the fastest growing Technical Encyclopedia! This website is 100% Free. Please register or login using the login box above if you have already registered. You will need to be logged in to reply, make new topics and to access all the areas. Registration is free! Click Here To Register.
+ Techno World Inc - The Best Technical Encyclopedia Online! » Forum » THE TECHNO CLUB [ TECHNOWORLDINC.COM ] » Programming Zone » HTML
  404 Not Found? Turn 404 Error Page into Profit!
Pages: [1]   Go Down
  Print  
Author Topic: 404 Not Found? Turn 404 Error Page into Profit!  (Read 978 times)
Daniel Franklin
TWI Hero
**********


Karma: 3
Offline Offline

Posts: 16647


View Profile Email
404 Not Found? Turn 404 Error Page into Profit!
« Posted: September 26, 2007, 02:54:09 PM »




So why lost this traffic?

With two-three simple lines of code you can redirect 404 traffic to a sponsor and make money automatically:

sample redirects:

with .htaccess :


404notfoundredirect .htaccess sample #1 #404notfoundredirect ErrorDocument 404 http://www.yoursponsor.com/?youraffiliateidhere

with .htaccess Apache's mod-rewrite:

404notfoundredirect .htaccess with Apache's mod-rewrite sample #3 If http://www.examplesite.com/url/file.html does not exist, redirect to http://www.examplesite.com/index.php

Put this in your site .htaccess file: RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*) http://www.yoursponsor.com/?youraffiliateidhere

all wrong hits will be redirected to your site http://www.yoursponsor.com/?youraffiliateidhere

with javascript (put this page instead of moved/deleted page on your site) 404notfoundredirect Search Engine-Friendly JavaScript Redirect with Frames - sample #4 <html> <head> <title> Go To Sponsor </title> <script> location.replace("http://www.yoursponsor.com/?youraffiliateidhere") </script> </head> <frameset cols="0,*"> </frameset> <noframes> <body> Please Visit my site sponsor </body> </noframes> </html>

redirect with php:

404notfoundredirect Redirects with PHP - sample #5 <?php header("Location: http://www.yoursponsor.com/?youraffiliateidhere"); ?>

More useful information about .htaccess, redirects, deny/allow you can find at http://www.404notfoundredirect.com/

Articles Source - Free Articles

Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Copyright © 2006-2023 TechnoWorldInc.com. All Rights Reserved. Privacy Policy | Disclaimer
Page created in 0.074 seconds with 24 queries.