Je veux traiter toutes les demandes à un domaine en utilisant un seul script PHP.Comment rediriger tout en interne en utilisant htaccess et mod_rewrite?
Par exemple:
www.domain.com/something.php -> would be loading -> www.domain.com/process.php?u=something.php
www.domain.com/anything -> would be loading -> www.domain.com/process.php?u=anything
www.domain.com/sub/dir/x -> would be loading -> www.domain.com/process.php?u=sub/dir/x
Mais process.php ne devrait jamais ouvrir directement sur le navigateur, je veux faire comme une redirection interne.
Quelqu'un pourrait me montrer comment pourrais-je utiliser htaccess et mod_rewrite pour faire cela?