Welcome! Log In Create A New Profile

Advanced

[WB16] URL to the Website

Posted by Michael Drechsel <img src="images/world-s.png" class="global" alt="Global User" title="Global User" /> 
Michael Drechsel <img src="images/world-s.png" class="global" alt="Global User" title="Global User" />
[WB16] URL to the Website
January 18, 2012 09:02AM
Hi HTTP Gurus,

what to do if I want that my Website (http://www.mysite.com/ProjectName) is availible as [www.mysite.com] ?

I Ithink there must be a redirection at the standard website but what means that for parameters that I use (http://www.mysite.com/ProjectName?para1="test")
Kingdr
Re: [WB16] URL to the Website
January 18, 2012 02:09PM
Michael

Maybe like this as below (javaScript):

<FORM name=myForm action="ProjectNameTest" method=post>
<INPUT type=hidden name=parameter value="para1">
</FORM>
<B><a href="javascript:myForm.submit()" <I>Link</I></a></B>

or vaguely browse www.windev.com for help/video stuff

HTH

King
Kingdr
Re: [WB16] URL to the Website
January 18, 2012 02:39PM
Typo...

<FORM name=myForm action="ProjectName" method=post>
<INPUT type=hidden name=parameter value="test">
</FORM>
<B><a href="javascript:myForm.submit()" <I>Link</I></a></B>
KenKnight <img src="images/world-s.png" class="global" alt="Global User" title="Global User" />
Re: [WB16] URL to the Website
February 09, 2012 04:12AM
Hi Michael,

If I understand you correctly you want a specific project to executed directly from the root domain of your site but still physically reside in project_web directory.

If you're running Server 2008 IIS check out URL Rewriting and add an Inbound Rule that can capture the requests to the root domain and properly redirect it to your application. You can also capture parameters.

here's a quick example.

I have an inbound rule that uses regular expressions and watches for this;

^rdp_session/([_0-9a-z-]+).rdp

So anything coming in to the website with a path of /rdp_sesssion/-any text or number-.rdp will then route to the following url in the background;


/myproject_web/us/handle_rdp.awp?s={R:1}

The rdp file is passed to the awp file as the 's' parameter.

Make sure you set the action type to Rewrite.

If you're running Server 2003, you'll want to check out one of the add-ins that give you the mod-rewrite / url-rewrite functionality.

Cheers!
ken
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: