umbracoUrlAlias - extensionless URLs Options
fishFace
Posted: Monday, January 28, 2008 11:44:25 PM
Rank: Newbie

Joined: 1/28/2008
Posts: 2
I have an Umbraco web site with a page with a URL of the form:

http://www.mysite.com/training.aspx

My client also wants that page to respond to requests for:

http://www.mysite.com/training/


I found information about the umbracoUrlAlias property and thought this would solve my problem. However, firstly I am unable to get this to work at all, and secondly I have since read some information that suggests the new alias URL still needs an .aspx extension.

Does anyone know if this is indeed the case, or is umbracoUrlAlias potentially able to solve my problem and worth trying to get working? If not, what alternative options do I have?

Many thanks for any help!

FF
psterling@homax
Posted: Tuesday, January 29, 2008 12:49:18 AM

Rank: Fanatic

Joined: 10/30/2007
Posts: 215
Location: Bellingham
You can definitely accomplish this using URL rewriting. Have a peek into the:

.../config/UrlRewriting.config

file (the comments in the file have been enough to help me do just what you are proposing.)

-Paul

motusconnect.com :: level-2 certified :: MVP 2008/2009
imayat12
Posted: Tuesday, January 29, 2008 9:57:15 AM

Rank: Addict

Joined: 7/19/2006
Posts: 649
Location: Preston, UK
Fishface,

You need to do the following:

In the web.config

Code:

<add key="umbracoUseDirectoryUrls" value="true" />


by default the value is false change it to true.

Then in iis

1. In IIS goto the website and click on properties

2. Select home directory tab.

3. Click configuration

4. Under wildcard application maps section click insert

5. Then click browse and select file C:\Windows\Microsoft.NET\Framework\v2.0.50727\ aspnet_isapi.dll uncheck verify file exists then click apply.


NB your directory paths might be different

Regards

Ismail


Level 2 certified. If it aint broke dont fix.
fishFace
Posted: Tuesday, January 29, 2008 10:20:55 AM
Rank: Newbie

Joined: 1/28/2008
Posts: 2
Many thanks Ismail - that worked a treat!
tarekahf
Posted: Monday, November 10, 2008 9:00:55 AM
Rank: Enthusiast

Joined: 10/18/2008
Posts: 26
I am using Beta 2 Take 2, and followed the steps in this thread becuase I want to do the same thing, but I am getting error "not found" or something like that.

Please help.

Tarek.
tarekahf
Posted: Monday, November 10, 2008 11:29:24 PM
Rank: Enthusiast

Joined: 10/18/2008
Posts: 26
Again, using Umbraco V4 beta 2, take 2.

I managed to install multiple websites under one Umbraco Installation (in version 3 and 4). It is really cool !

I used Host Headers and defined them under IIS (for each web site) and in Umbraco Content Section, Manage Hosts. All host header are defined in the DNS and all are pointing to one main IP Address.

For example:

Umbraco Content Section:
- Boost Home Page
- Getting Started
...
- Second Website
- Third Website
...

And, for each main website, I have defined an entry in: 1. IIS, 2. Umbraco Content Section, and 3. DNS Lookup Table, and all of them are pointing to the same machine IP.

I think there should be an easier way. It is really very difficult to do 3 different configuration for each website !

I want to define one root Host Header for the Umbraco Installation, and all website to be created under Umbraco and to be able to call each website separately, like this:

http://company_net (where the host header "company_net" is defined in IIS, Umbraco, and DNS, and pointing to the machine IP of the root Umbraco Installation , basically use only one root host header)

http://company_net/application_1 (website for application #1)

http://company_net/application_2 (website for application #2)

http://company_net/application_3 (website for application #3)

...

...etc.

I remember that I read somewhere that I can use URL Alias or something like that, I tried this appraoch, and not getting the required result.

I want to avoid defining a host header for each website, how ?

Tarek.
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.