Setting up a URL redirect in IIS

2 views
Skip to first unread message

jimbly

unread,
Oct 23, 2008, 1:31:10 AM10/23/08
to Webmasters Helping Webmasters
Hi,

We have a website www.mysite.org.au and within that a page
mysite.org.au\services\familiies\frc.htm

The users want to have an alias set up so that typing www.mysite.org.au\frc
will redirect to www.mysite.org.au\services\familiies\frc.htm

I have managed this in IIS by using a new virtual directory and it
works well.

Sadly our ISP won't make changes to IIS for us.

They offered us a DNS redirect (at a cost! ) or mentioned we could use
an index file. I guess they mean .htaccess which I understand is
apache specific.

Are there any other options?

Many Thanks in advance

Jim

Vision Jinx

unread,
Oct 23, 2008, 3:20:38 PM10/23/08
to Webmasters Helping Webmasters
Hi,

I agree that probably a DNS or .htaccess redirect would probably be
the preferred way, but if that is not an option you can try something
like...

In server side scripting (like PHP - index.php)
header("Location: http://www.domain.com/");

As Javascript (html - index.html)
top.location='http://www.domain.com/';
or
top.location.href='http://www.domain.com/';

As a Meta Redirect (html - index.html)
<meta http-equiv="refresh" content="0;url=http://www.domain.com">

FYI - Javascript and Meta refresh can be disabled in browsers. In this
case I would also include a text link on the page.

Hope that helps :-)

Cheers!
Vision Jinx


On Oct 22, 11:31 pm, jimbly <goo...@jimbly.net> wrote:
> Hi,
>
> We have a websitewww.mysite.org.auand within that a page
> mysite.org.au\services\familiies\frc.htm
>
> The users want to have an alias set up so that typingwww.mysite.org.au\frc
> will redirect towww.mysite.org.au\services\familiies\frc.htm

jimbly

unread,
Oct 23, 2008, 11:26:00 PM10/23/08
to Webmasters Helping Webmasters
Hi Vision

Thanks that worked a treat!

Kind Regards

Jim

On Oct 24, 5:20 am, Vision Jinx <vjn...@gmail.com> wrote:
> Hi,
>
> I agree that probably a DNS or .htaccess redirect would probably be
> the preferred way, but if that is not an option you can try something
> like...
>
> In server side scripting (like PHP - index.php)
> header("Location:http://www.domain.com/");
>
> As Javascript (html - index.html)
> top.location='http://www.domain.com/';
> or
> top.location.href='http://www.domain.com/';
>
> As a Meta Redirect (html - index.html)
> <meta http-equiv="refresh" content="0;url=http://www.domain.com">
>
> FYI - Javascript and Meta refresh can be disabled in browsers. In this
> case I would also include a text link on the page.
>
> Hope that helps :-)
>
> Cheers!
> Vision Jinx
>
> On Oct 22, 11:31 pm, jimbly <goo...@jimbly.net> wrote:
>
> > Hi,
>
> > We have a websitewww.mysite.org.auandwithin that a page
Reply all
Reply to author
Forward
0 new messages