<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Redirecting a website in Ubuntu with Webdev App Server</title>
        <description> Hello All:

I installed Webdev Application Server in Ubuntu, and the application works when I use the following URL:

[mycompany.com]

Is there any way to redirect to /myproject when I use [mycompany.com] ?

Also, if I use multiple applications with different domains, it is still possible to redirect based on the domain?

Thanks
Greg</description>
        <link>https://www.wxforum.info/read.php?27131,798816,798816#msg-798816</link>
        <lastBuildDate>Wed, 20 May 2026 11:30:38 +0200</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://www.wxforum.info/read.php?27131,798816,799102#msg-799102</guid>
            <title>Re: Redirecting a website in Ubuntu with Webdev App Server</title>
            <link>https://www.wxforum.info/read.php?27131,798816,799102#msg-799102</link>
            <description><![CDATA[ Adding JS in index file can hep you. Use syntax like this :<br />
<br />
Something like:<br />
if(location.hostname == &quot;mysite.com&quot;){<br />
<br />
}]]></description>
            <dc:creator>premaconsulting</dc:creator>
            <category>WinDev Forum</category>
            <pubDate>Tue, 27 Jan 2026 03:02:54 +0100</pubDate>
        </item>
        <item>
            <guid>https://www.wxforum.info/read.php?27131,798816,798979#msg-798979</guid>
            <title>Re: Redirecting a website in Ubuntu with Webdev App Server</title>
            <link>https://www.wxforum.info/read.php?27131,798816,798979#msg-798979</link>
            <description><![CDATA[ Perhaps you could tell me where to download the linux version of HFSQL Server?<br />
Thanks,<br />
Garry]]></description>
            <dc:creator>gga</dc:creator>
            <category>WinDev Forum</category>
            <pubDate>Fri, 14 Nov 2025 19:01:07 +0100</pubDate>
        </item>
        <item>
            <guid>https://www.wxforum.info/read.php?27131,798816,798832#msg-798832</guid>
            <title>Re: Redirecting a website in Ubuntu with Webdev App Server</title>
            <link>https://www.wxforum.info/read.php?27131,798816,798832#msg-798832</link>
            <description><![CDATA[ Hi Greg,<br />
<br />
I&#039;m not familiar with Linux, but in IIS you bind a site to an url.<br />
So look for something similar in Ubuntu.<br />
<br />
Best regards,<br />
Piet]]></description>
            <dc:creator>pietvanz</dc:creator>
            <category>WinDev Forum</category>
            <pubDate>Mon, 21 Jul 2025 11:43:26 +0200</pubDate>
        </item>
        <item>
            <guid>https://www.wxforum.info/read.php?27131,798816,798824#msg-798824</guid>
            <title>Re: Redirecting a website in Ubuntu with Webdev App Server</title>
            <link>https://www.wxforum.info/read.php?27131,798816,798824#msg-798824</link>
            <description><![CDATA[ You can add some JS in the index.html file which is in /var/www/html to check the domain and proced to the app you need.<br />
<br />
Something like:<br />
if(location.hostname == &quot;mysite.com&quot;){<br />
<br />
}]]></description>
            <dc:creator>pao</dc:creator>
            <category>WinDev Forum</category>
            <pubDate>Mon, 14 Jul 2025 09:48:17 +0200</pubDate>
        </item>
        <item>
            <guid>https://www.wxforum.info/read.php?27131,798816,798823#msg-798823</guid>
            <title>Re: Redirecting a website in Ubuntu with Webdev App Server</title>
            <link>https://www.wxforum.info/read.php?27131,798816,798823#msg-798823</link>
            <description><![CDATA[ Thanks Paulo.<br />
I was referring to the index.html file created by Webdev for each site.<br />
<br />
I see you refer to the default index.html file for apache2 which is in /var/www/html directory. Now, even if I modify this file to redirect to another page, I&#039;m looking to host several webdev sites, so I&#039;m not sure how I can redirect to different websites depending on the domain in the request URL.<br />
<br />
Any help would be much appreciated.<br />
<br />
Regards;<br />
Greg]]></description>
            <dc:creator>Greg</dc:creator>
            <category>WinDev Forum</category>
            <pubDate>Fri, 11 Jul 2025 19:02:05 +0200</pubDate>
        </item>
        <item>
            <guid>https://www.wxforum.info/read.php?27131,798816,798822#msg-798822</guid>
            <title>Re: Redirecting a website in Ubuntu with Webdev App Server</title>
            <link>https://www.wxforum.info/read.php?27131,798816,798822#msg-798822</link>
            <description><![CDATA[ Are you sure that your redirection code is in the default file used by your webserver?<br />
normally it&#039;s the index.html in the /var/www/html]]></description>
            <dc:creator>pao</dc:creator>
            <category>WinDev Forum</category>
            <pubDate>Fri, 11 Jul 2025 17:59:42 +0200</pubDate>
        </item>
        <item>
            <guid>https://www.wxforum.info/read.php?27131,798816,798821#msg-798821</guid>
            <title>Re: Redirecting a website in Ubuntu with Webdev App Server</title>
            <link>https://www.wxforum.info/read.php?27131,798816,798821#msg-798821</link>
            <description><![CDATA[ Thank you Paulo.<br />
I see there is an index.html file in /home/webdevuser/Sites/myproject but it already have the redirecting code. However, it is still not working.<br />
<br />
Once thing I noticed is when I invoke [<a href="https://domain.com"  rel="nofollow">domain.com</a>], apache2 screen is shown. I can only access my site when I use [<a href="https://domain.com/myproject"  rel="nofollow">domain.com</a>]<br />
<br />
Do you know what would be wrong?<br />
<br />
Thanks<br />
Greg]]></description>
            <dc:creator>Greg</dc:creator>
            <category>WinDev Forum</category>
            <pubDate>Fri, 11 Jul 2025 16:44:23 +0200</pubDate>
        </item>
        <item>
            <guid>https://www.wxforum.info/read.php?27131,798816,798818#msg-798818</guid>
            <title>Re: Redirecting a website in Ubuntu with Webdev App Server</title>
            <link>https://www.wxforum.info/read.php?27131,798816,798818#msg-798818</link>
            <description><![CDATA[ In the default page of your domain normally index.htm or index.html you can redirect the user to your application.<br />
Check the index.html generate by WEBDEV, adapt it and used it as the dewfault document of your domain.]]></description>
            <dc:creator>pao</dc:creator>
            <category>WinDev Forum</category>
            <pubDate>Fri, 11 Jul 2025 12:43:54 +0200</pubDate>
        </item>
        <item>
            <guid>https://www.wxforum.info/read.php?27131,798816,798816#msg-798816</guid>
            <title>Redirecting a website in Ubuntu with Webdev App Server</title>
            <link>https://www.wxforum.info/read.php?27131,798816,798816#msg-798816</link>
            <description><![CDATA[ Hello All:<br />
<br />
I installed Webdev Application Server in Ubuntu, and the application works when I use the following URL:<br />
<br />
[<a href="https://mycompany.com/myproject"  rel="nofollow">mycompany.com</a>]<br />
<br />
Is there any way to redirect to /myproject when I use [<a href="https://mycompany.com/"  rel="nofollow">mycompany.com</a>] ?<br />
<br />
Also, if I use multiple applications with different domains, it is still possible to redirect based on the domain?<br />
<br />
Thanks<br />
Greg]]></description>
            <dc:creator>Greg</dc:creator>
            <category>WinDev Forum</category>
            <pubDate>Fri, 11 Jul 2025 08:22:23 +0200</pubDate>
        </item>
    </channel>
</rss>
