redirect from URL

S

Stuart Palmer

Hi Everyone,
I am wanting to create a redirector on my server so that if I type in
something like 'mysite.com/redirect/target' it would look into my database
and see entry for 'target' and forward to that url.

How do I do this? I put a default.asp file in my redirect url, however,
trying to hit redirect/target tries process that url rather than read the
default.asp and the first off to my target.

One way to do this would be to put redirect?target but from a mailshot this
isn't very nice.

Any ideas how I can achieve this?

Many thx
Stuart
 
D

Dave Anderson

Stuart said:
I am wanting to create a redirector on my server so that if I
type in something like 'mysite.com/redirect/target' it would look
into my database and see entry for 'target' and forward to that url.

How do I do this? I put a default.asp file in my redirect url,
however, trying to hit redirect/target tries process that url rather
than read the default.asp and the first off to my target.

One way to do this would be to put redirect?target but from a
mailshot this isn't very nice.

Any ideas how I can achieve this?

Custom 404 handler in your /redirect folder.



--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
 
S

Stuart Palmer

Thx Dave, I have tried this, however, the default 404 asp page doesn't seem
to process the page as expected, it ignores all ASP code.

Is there a setting I need to alter in IIS or set in the file perhaps?

Thx
Stu
 
D

Dave Anderson

Stuart said:
Thx Dave, I have tried this, however, the default 404 asp page
doesn't seem to process the page as expected, it ignores all ASP code.

Are you following the guidelines here?
http://aspfaq.com/show.asp?id=2162

Note that those instructions are for the web root, but you can likewise
customize any folder or application under the root.


--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
 
S

Stuart Palmer

Thx dave, looks like ot need to speak to my host to set up that url param on
the server for me.

Cheers
Stu
 
E

Evertjan.

Stuart Palmer wrote on 17 feb 2005 in
microsoft.public.inetserver.asp.general:
Thx dave, looks like ot need to speak to my host to set up that url
param on the server for me.

Please include essential part of the posing you are replying on,
or use [private] email.

Is your text from the "Stargate series"? ;-}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,262
Messages
2,571,056
Members
48,769
Latest member
Clifft

Latest Threads

Top