Sounds like you need mod_rewrite to rewrite a URL for you. There are tons of mod_rewrite examples on the Internet to do exactly what you need. The rough idea is:
RewriteRule [match expression] [new location expression] [options]
The following StackOverflow questions may help:
- Redirecting all traffic to a specific subdomain using modrewrite
- More .htaccess discussions
Allowing you to run a regular expression match against a URL and rewrite it using groups into a new URL. If your HTTP server allows mod_rewrite directives in .htaccess
and you have the module installed in the server (most Linux distros and WAMP installs do by default).
First
RewriteEngine On
Then
RewriteRule ^/(.*)$ / [L]
or
RewriteRule ^/(.*)$ /?page=$1 [L]
If you want to know where they came from