Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Redirect to second or third 404 page?

BuyAdsBuyAds Member

Hello guys!

Is there a option to redirect users in second or third 404 page.

Example:
If user 1 types wrong link should be redirected to index.html
If user 2 types wrong link should be redirected to site.html

Thank you guys!

Comments

  • Make 404.php page that sets a cookie counter. If cookie unset do X, if cookie set to 1 do Y if cookie set to >2 then do Z

  • BuyAdsBuyAds Member

    hmmm..

    anyway to show in the 404 page a random content from different sites?

  • Use PHP instead of html and use PHP's random function.

  • BuyAdsBuyAds Member
    edited May 2015

    What i have done is redesigned the 404.php page (copied the index.php code into it).

    The problem is now that the sites shows as broken links when i create sitemap:(

    Someone any idea?

  • in your 404.php do random number and display different design based on random number

  • FlamesRunnerFlamesRunner Member
    edited May 2015

    Here's a small snippet of PHP that you can use:

    <?php
    
    $contentID = rand(1,3);
    
    if($contentID == "1") {
    header('Location: http://example.com/site1.html');
    } else if($contentID == "2") {
    header('Location: http://example.com/site2.html');
    } else {
    header('Location: http://example.com/site3.html');
    }
    
    ?>
    
Sign In or Register to comment.