Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $action = isset($_GET['action']) ? $_GET['action'] : null;
- switch($action) {
- case 'portfolio':
- include('page.php');
- break;
- case 'contact':
- include('page.php');
- break;
- case default:
- include('page.php');
- }
- //Page index actuelle dans page.php et index.php c'est ça.
- //Ensuite faudra voir pour afficher "l'onglet" portfolio avec /portfolio mais plus tard.
- ?>
- ---------------------Reriting-------------------
- RewriteRule ^index.php?action=contact$ /@
- RewriteRule ^index.php?action=portfolio$ /portfolio
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement