Microsoft Content Management Server - Site Manager

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > February 2004 > Site Manager





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Site Manager
Tim

2004-02-04, 10:48 am

Hi,

I have created many channels. I want however to create an
alias to another channel. One way in which I have done
this is to create a simple script in .Net to redirect the
user to a url. I then right clicked on my channel,
clicked properties, selected the Publishing tab, then hit
the Select button at the bottom of the screen, then a
menu popped up. I then selected Use page with this name
option, "Default", and typed in the path to the aspx file
in the Script URL. Now this way did work. Having done it
this way however would mean I would have to create the
same script dozens of times to link to different
channels. Do you know of a better way of creating an
alias.

Thanks,

Tim


=?Utf-8?B?ZHdj?=

2004-02-04, 10:48 am

Tim,

I'm not sure exactly why you would want an alias channel, but my best suggestion to achieve this is to delete the alias channel and instead create a virtual directory in IIS to redirect to the destination channel. This way you do not have to create a new
redirect for each additional page.

If you could provide more details as to what functionality you're trying to achieve, I can give you a more specific solution. Do postings need to exist in this alias channel in order to perform the redirect?

----- Tim wrote: -----

Hi,

I have created many channels. I want however to create an
alias to another channel. One way in which I have done
this is to create a simple script in .Net to redirect the
user to a url. I then right clicked on my channel,
clicked properties, selected the Publishing tab, then hit
the Select button at the bottom of the screen, then a
menu popped up. I then selected Use page with this name
option, "Default", and typed in the path to the aspx file
in the Script URL. Now this way did work. Having done it
this way however would mean I would have to create the
same script dozens of times to link to different
channels. Do you know of a better way of creating an
alias.

Thanks,

Tim



Tim

2004-02-04, 10:48 am

Hi,

The issue I'm trying to solve is this: I have some page
urls like this: www.mywebpage.com/Women/Girl/Kid/Baby
Instead of having to navigate through submenus to get to
say...the Baby page, I want the user to be able to type
in the address bar: www.mywebpage.com/Baby and it then
takes them to that page instead of having to go through
the other channels first. Those channels have pages in
them as well. If I do what you suggested and create
virtual directories then I'll have to create a bunch of
virtual directories for each long url I have that I want
to get to without having to go through the submenus I
have. When I say submenus, I'm refering to the submenus I
have:
Women
Girl
Kid


I'm just trying to shorten the url.

thanks..




quote:

>-----Original Message-----
>Tim,
>
>I'm not sure exactly why you would want an alias


channel, but my best suggestion to achieve this is to
delete the alias channel and instead create a virtual
directory in IIS to redirect to the destination channel.
This way you do not have to create a new redirect for
each additional page.
quote:

>
>If you could provide more details as to what


functionality you're trying to achieve, I can give you a
more specific solution. Do postings need to exist in
this alias channel in order to perform the redirect?
quote:

>
> ----- Tim wrote: -----
>
> Hi,
>
> I have created many channels. I want however to


create an
quote:

> alias to another channel. One way in which I have


done
quote:

> this is to create a simple script in .Net to


redirect the
quote:

> user to a url. I then right clicked on my channel,
> clicked properties, selected the Publishing tab,


then hit
quote:

> the Select button at the bottom of the screen, then


a
quote:

> menu popped up. I then selected Use page with this


name
quote:

> option, "Default", and typed in the path to the


aspx file
quote:

> in the Script URL. Now this way did work. Having


done it
quote:

> this way however would mean I would have to create


the
quote:

> same script dozens of times to link to different
> channels. Do you know of a better way of creating


an
quote:

> alias.
>
> Thanks,
>
> Tim
>
>
>
>.
>


Stefan [MSFT]

2004-02-04, 10:48 am

Hi Tim,

I would suggest to create a custom error page for the 404 error in IIS.
This error page needs to check if the URL is an Alias and does a
redirection.
If not - an 404 error needs to be rendered.

Cheers,
Stefan.

--
This posting is provided "AS IS" with no warranties, and confers no rights.


"Tim" <anonymous@discussions.microsoft.com> wrote in message
news:71df01c3e785$33b23710$a101280a@phx.gbl...[QUOTE][color=darkred]
> Hi,
>
> The issue I'm trying to solve is this: I have some page
> urls like this: www.mywebpage.com/Women/Girl/Kid/Baby
> Instead of having to navigate through submenus to get to
> say...the Baby page, I want the user to be able to type
> in the address bar: www.mywebpage.com/Baby and it then
> takes them to that page instead of having to go through
> the other channels first. Those channels have pages in
> them as well. If I do what you suggested and create
> virtual directories then I'll have to create a bunch of
> virtual directories for each long url I have that I want
> to get to without having to go through the submenus I
> have. When I say submenus, I'm refering to the submenus I
> have:
> Women
> Girl
> Kid
>
>
> I'm just trying to shorten the url.
>
> thanks..
>
>
>
>
>
> channel, but my best suggestion to achieve this is to
> delete the alias channel and instead create a virtual
> directory in IIS to redirect to the destination channel.
> This way you do not have to create a new redirect for
> each additional page.
> functionality you're trying to achieve, I can give you a
> more specific solution. Do postings need to exist in
> this alias channel in order to perform the redirect?
> create an
> done
> redirect the
> then hit
> a
> name
> aspx file
> done it
> the
> an


=?Utf-8?B?ZHdj?=

2004-02-04, 10:49 am

Have you considered using connected postings to solve this issue? That way you would'nt have to do any redirection.

----- Tim wrote: -----

Hi,

The issue I'm trying to solve is this: I have some page
urls like this: www.mywebpage.com/Women/Girl/Kid/Baby
Instead of having to navigate through submenus to get to
say...the Baby page, I want the user to be able to type
in the address bar: www.mywebpage.com/Baby and it then
takes them to that page instead of having to go through
the other channels first. Those channels have pages in
them as well. If I do what you suggested and create
virtual directories then I'll have to create a bunch of
virtual directories for each long url I have that I want
to get to without having to go through the submenus I
have. When I say submenus, I'm refering to the submenus I
have:
Women
Girl
Kid


I'm just trying to shorten the url.

thanks..




quote:

>-----Original Message-----
>Tim,
channel, but my best suggestion to achieve this is to
delete the alias channel and instead create a virtual
directory in IIS to redirect to the destination channel.
This way you do not have to create a new redirect for
each additional page.[QUOTE][color=darkred]
functionality you're trying to achieve, I can give you a
more specific solution. Do postings need to exist in
this alias channel in order to perform the redirect?[QUOTE][color=darkred]
create an[QUOTE][color=darkred]
> alias to another channel. One way in which I have


done
quote:

> this is to create a simple script in .Net to


redirect the
quote:

> user to a url. I then right clicked on my channel,
> clicked properties, selected the Publishing tab,


then hit
quote:

> the Select button at the bottom of the screen, then


a
quote:

> menu popped up. I then selected Use page with this


name
quote:

> option, "Default", and typed in the path to the


aspx file
quote:

> in the Script URL. Now this way did work. Having


done it
quote:

> this way however would mean I would have to create


the
quote:

> same script dozens of times to link to different
> channels. Do you know of a better way of creating


an
quote:

> alias.
>


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com