PDA

View Full Version : Redirects using short URLs


Bob Allen
03-01-2005, 12:24 PM
My domain name is long -- playerscoreboard.com. I'd like to register another domain name that acts as a redirect to this one. Say 'player.com'. I have a VDS account. What would it take to do this?

When implemented, I hope it will still use the same Apache instance and directory tree on my server. I already have a 404 page that handles my usual redirects. So I am hoping 'player.com' requests would also be seen by my 404 error redirect page and I can redirect the 'short' name into the 'long' name and redirect to the desired page.

For instance, playerscoreboard.com/event=7359 is processed by my 404 page. I would also like player.com/event=7359 to be processed identically with the URL redirected to playerscoreboard.com/event=7359.

Thanks for all your help,

Bob Allen

Chris
03-01-2005, 12:54 PM
Hi Bob,

This is basically an "Alias". You can setup alias domains in your control panel easily.

1. In your VDS control panel, click on "Domain Settings" in the left menu.
2. Under the domain list, click the "New" button.
3. Enter the domain name (i.e. player.com) and choose "Default" for the root directory.
4. Click Finish

Our DNS refreshes every 3 hours, so there will be a delay before it resolves.

I hope that helps...

nateb0t
03-01-2005, 02:37 PM
I've read that using Apache's ForceType is a better solution than using your 404 pages for parse/redirects

http://www.evolt.org/article/Making_clean_URLs_with_Apache_and_PHP/18/22880/