<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Redirect domain root to "/site" subfolder]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I have my personal site in a subfolder of my domain, e.g. <a href="https://example.com/site" target="_blank" rel="noopener noreferrer nofollow ugc">https://example.com/site</a>.</p>
<p dir="auto">Going to <a href="http://example.com" target="_blank" rel="noopener noreferrer nofollow ugc">example.com</a> shows the default Cloudron LAMP page. I want to redirect visitors to the .com address to <a href="http://example.com/site" target="_blank" rel="noopener noreferrer nofollow ugc">example.com/site</a><br />
I have created an <code>.htaccess</code> file in the root directory with the following code</p>
<pre><code>&lt;IfModule mod_rewrite.c&gt;
RewriteEngine on
RewriteRule ^$ /site/ [L]
&lt;/IfModule&gt;
</code></pre>
<p dir="auto">But this doesn't work; no redirection occurs.</p>
<p dir="auto">I got this code from this Dreamhost article in the section:<br />
"Automatically load a subdirectory"<br />
<a href="https://help.dreamhost.com/hc/en-us/articles/215747748-How-can-I-redirect-and-rewrite-my-URLs-with-an-htaccess-file" target="_blank" rel="noopener noreferrer nofollow ugc">https://help.dreamhost.com/hc/en-us/articles/215747748-How-can-I-redirect-and-rewrite-my-URLs-with-an-htaccess-file</a></p>
<p dir="auto">I'd appreciate any help!<br />
Thanks!</p>
]]></description><link>https://forum.cloudron.io/topic/10936/redirect-domain-root-to-site-subfolder</link><generator>RSS for Node</generator><lastBuildDate>Fri, 04 Sep 2026 23:15:30 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/10936.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 26 Jan 2024 17:45:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Redirect domain root to "/site" subfolder on Fri, 26 Jan 2024 18:25:21 GMT]]></title><description><![CDATA[<p dir="auto"><a href="https://stackoverflow.com/questions/990392/how-can-i-use-htaccess-rewrite-to-redirect-root-url-to-subdirectory" target="_blank" rel="noopener noreferrer nofollow ugc">https://stackoverflow.com/questions/990392/how-can-i-use-htaccess-rewrite-to-redirect-root-url-to-subdirectory</a> has other ideas as well. If you want /site to appear in the browser URL, you can also do <code>RewriteRule ^$ /site [L]</code> (no trailing slash!)</p>
]]></description><link>https://forum.cloudron.io/post/81893</link><guid isPermaLink="true">https://forum.cloudron.io/post/81893</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Fri, 26 Jan 2024 18:25:21 GMT</pubDate></item><item><title><![CDATA[Reply to Redirect domain root to "/site" subfolder on Fri, 26 Jan 2024 18:19:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rchau" aria-label="Profile: rchau">@<bdi>rchau</bdi></a> said in <a href="/post/81881">Redirect domain root to "/site" subfolder</a>:</p>
<blockquote>
<p dir="auto">I have created an .htaccess file in the root directory with the following code</p>
</blockquote>
<p dir="auto">you have to create this in <code>/app/data/public/.htaccess</code> (not inside /app/data) . Can you double check?</p>
]]></description><link>https://forum.cloudron.io/post/81891</link><guid isPermaLink="true">https://forum.cloudron.io/post/81891</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Fri, 26 Jan 2024 18:19:35 GMT</pubDate></item></channel></rss>