URL Mapping

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
5/7/2009 2:44:25 PM
Gravatar
Total Posts 42

URL Mapping

I could use some help with mapping URLs. Within my company site I have offices with their own  sub-domains. I've added the sub-domains to the host name mapping, Url Mapping is not mapping to their page. For example, www.myoffice.company.com should pull up www.company.com/myoffice.aspx. I could get around this by creating seperative sites.

5/8/2009 7:22:50 AM
Gravatar
Total Posts 18439

Re: URL Mapping

Hi Steve,

The url manager in mojoportal is not designed to do the kind of re-writing you are looking for, there may be some IIS module that can do that kind of url rewriting.

In mojoPortal the friendly url is always relative to the root like http://somesite/[friendly-url.aspx] , so the friendly url for that is stored in the db as ~/friendly-url.aspx and it maps to the real url which is a real page ususally passing some params in the real url. Pages in the menu of mojoPortal are all handled by the real page /Default.aspx?pageid=x

So an url like http://www.myoffice.company.com is just a root url there is no friendly url to detect since there is nothing after the root.

And the mojoportal url manager is not designed to map or redirect from one virtual url to another, only from a virtual url to a real physical page.

Hope it helps,

Joe

5/8/2009 5:30:03 PM
Gravatar
Total Posts 42

Re: URL Mapping

Thanks for the information Joe. Its there a way just to redirect a url to a page in the site then? Example. www.myoffice.comany.com to www.company.com/myoffice.aspx. Not looking for a rewrite - just a way to point the url to the page.

5/9/2009 4:50:53 AM
Gravatar
Total Posts 18439

Re: URL Mapping

Well if  www.myoffice.comany.com is the root of a mojoportal site then naturally what happens is the request goes to /Default.aspx and the first page in the mojo site will be served.

You could create a classic asp page named Default.asp and do the redirect from there and make it higher in the list of default documents in IIS than Default.aspx.

Or you could create an aspx page with inline code and name it Index.aspx and make it higher in the list of default documents. Actually you can name it whatever you like (maybe Redirect.aspx) as long as its a higher priority default documents in IIS for that site.

Hope it helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.