Jump to content

Counter-Strike: Global Offensive Hack
VAC Undetected

Buy Now

Rust Hack
EAC Undetected

Apply Now

Team Fortress 2 Hack
VAC Undetected

Buy Now

Counter-Strike: Source Hack
VAC Undetected

Buy Now

Garry's Mod Hack
VAC Undetected

Buy Now
Royal News
  • VAC & VACNet safe
  • Check the feedback forum to get free days added to your subscription
  • Safest hack provider since 2007
  • royalhack.net is by no mean associated with any other cheat provider
  • Beware of scammers and copies
Sign in to follow this  

[TUTO] Routeur PHP

Recommended Posts


Nativement les serveurs web redirige sur des pages php html ou autre avec des liens ayant comme forme : http://domain.tld/page.php

Le but est de remplacer la partie '/PAGE.PHP' par '/home

Architecture :




header('Location: /home'); 

Celui-ci renvoi inconditionnellement vers la page "/home"


$request_uri = explode('?', $_SERVER['REQUEST_URI'], 2);

switch ($request_uri[0]) {
//Page d'exemple
case '/home':
        require './pages/page.php';
// Cas inconnu -> 404
        require './pages/404.php';

Nous séparons la variable "$_SERVER['REQUEST_URI']" afin d'en récupérer uniquement le "/XXXXX" "XXXXX" étant notre page recherché dans le cas présent "/home"


Notre routeur est fonctionnel, hors afin d'être pleinement opérationnel, il faut maintenant forcer à l'aide d'un ".htaccess" la redirection d'url vers notre routeur.php


RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ router.php [L,QSA]


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

Read Terms of Use to continue