Welcome! Log In Create A New Profile

Advanced

WB28 - Redirect WB long URL

Posted by JP 
JP
WB28 - Redirect WB long URL
October 13, 2023 05:59PM
Hi All

How can I redirect the WebDev 28 long URL to the main domain only?

For example, the long WB28 URL is:

https :// www.mydomain.com/PROJECTNAME_WEB/index.awp

I want to just let users go to: https :// www.mydomain.com

I know the frameset trick BUT - putting the long URL into a <frameset> inside a default.htm causes WebDev to lose the ability to dynamically resize the pages according to browser width changes. It redirects to the long URL OK but I lose this functionality and thus lose the use of different layouts for browser size. It uses only the layout according to the initial browser width and does not change when I subsequently resize the browser. If I use the given long URL then as I change the browser width the page dynamically uses the appropriate layout.

TIA



Edited 2 time(s). Last edit at 10/13/2023 06:54PM by JP.
Re: WB28 - Redirect WB long URL
October 14, 2023 08:36AM
I would also love a solution to this. I've also tried the iframe concept and hit the same issues (and others) that you have.

G
Argus
Re: WB28 - Redirect WB long URL
October 15, 2023 08:43PM
there are several solutions... frameset is just one of them.... redirect seems to be what you are looking for

Details of several solutions available here: [www.kalanda.net]
JP
Re: WB28 - Redirect WB long URL
October 16, 2023 02:54PM
Argus

Thanks, that worked for me, solved the problem. Many thanks smiling smiley
Re: WB28 - Redirect WB long URL
October 17, 2023 09:19AM
JP, are you able to describe what you have done - I am very interested.
JP
Re: WB28 - Redirect WB long URL
October 17, 2023 10:09AM
MediOffice

Several solutions are given on that page Argus linked to. Which one to use is dependent on the type of website you have (i.e. static, dynamic, AWP).

I was using the frameset redirect option but that caused me to lose the automatic re-scaling of my AWP pages when the browser window was resized.

Now I am using the JavaScript option described as follows:

<HTML>
<SCRIPT LANGUAGE=JavaScript>
window.document.location="/votreprojet_web/fr/page.awp";
</SCRIPT>
</HTML>

... where the part "/votreprojet_web/fr/page.awp" should be replaced by your long WebDev URL staring at the PROJECTNAME_WEB name of your project and the "page.awp" should be the loading page of your site which in my case is "index.awp"

So the end-result for me was the following - create a default.htm file (assuming default.htm is your default file for the website set up under IIS in my case) and in that file I have:

<HTML>
<HEAD>

<TITLE>My Company Name</TITLE>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Language" content="EN">
<meta name="description" content="A short description of my company for robots and similar">
<meta name="keywords" content="A selection of keywords and phrases for search engines">
<meta name="rating" content="General">
<meta name="robots" content="All">

</HEAD>

<SCRIPT LANGUAGE=JavaScript>
window.document.location="/MYPROJECTNAME_WEB/index.awp";
</SCRIPT>



Edited 1 time(s). Last edit at 10/17/2023 10:10AM by JP.
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: