Forum Moderators: mack

Message Too Old, No Replies

URL Shortcut

Redirecting from domain.com/user to other page

         

riotfire

2:17 pm on Jul 14, 2006 (gmt 0)

10+ Year Member



Im trying to create a shortcut used in many sites where there is a "virtual directory" in the main folder.

ex.
a user types http://example.com/user
but the page that loads is really
[user.example.com...]

is this possible?

Programmers

3:58 pm on Jul 14, 2006 (gmt 0)

10+ Year Member



It is but I don't know how... It might be something to do with your cpanel.

A good alternative is the following code:

<head>
<meta http-equiv="refresh" content="1;url=http://www.dot.com">
</head>

riotfire

6:11 pm on Jul 14, 2006 (gmt 0)

10+ Year Member



I thought about the meta tag, but i do not want to have to create a new folder and html file.

encyclo

6:57 pm on Jul 14, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can do this with mod_rewrite if you are running the Apache webserver. You should consult the Apache forum [webmasterworld.com] library for starters. :)