Advertisement
soyuka

Untitled

Dec 21st, 2011
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. <?php
  2. $action = isset($_GET['action']) ? $_GET['action'] : null;
  3. switch($action) {
  4. case 'portfolio':
  5. include('page.php');
  6. break;
  7. case 'contact':
  8. include('page.php');
  9. break;
  10. case default:
  11. include('page.php');
  12. }
  13.  
  14. //Page index actuelle dans page.php et index.php c'est ça.
  15. //Ensuite faudra voir pour afficher "l'onglet" portfolio avec /portfolio mais plus tard.
  16.  
  17. ?>
  18. ---------------------Reriting-------------------
  19.  
  20. RewriteRule ^index.php?action=contact$ /@
  21. RewriteRule ^index.php?action=portfolio$ /portfolio
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement