<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : i18n rewrite question</title>
		<link>https://www.cotonti.com</link>
		<description>Neueste Themenbeiträge</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Sun, 12 Apr 2026 08:00:28 -0000</pubDate>

		<item>
			<title>Trustmaster</title>
			<description><![CDATA[<p>
	Right</p>
]]></description>
			<pubDate>Di, 25 Sep 2012 14:47:51 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=7119&d=0#post35605]]></link>
		</item>
		<item>
			<title>Twiebie</title>
			<description><![CDATA[<p>
	Is it because of the subfolder you reckon?</p>
]]></description>
			<pubDate>Di, 25 Sep 2012 09:52:11 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=7119&d=0#post35601]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[<p>
	Indeed, got the same bug on my localhost.</p>
]]></description>
			<pubDate>Di, 25 Sep 2012 08:06:59 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=7119&d=0#post35599]]></link>
		</item>
		<item>
			<title>Twiebie</title>
			<description><![CDATA[<p>
	Hmm, that doesn't seem to change anything.</p>
<p>
	It's still rewriting the homepage to www.domain.com/en/subfolder/, instead of www.domain.com/subfolder/en/</p>
]]></description>
			<pubDate>Mo, 24 Sep 2012 21:16:20 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=7119&d=0#post35592]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[<p>
	I use this in datas/urltrans.dat to fix that:</p>
<pre class="brush:plain;">
index	*	/{!$e}</pre>
<p>
	 </p>
]]></description>
			<pubDate>Mo, 24 Sep 2012 04:57:33 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=7119&d=0#post35577]]></link>
		</item>
		<item>
			<title>Twiebie</title>
			<description><![CDATA[<p>
	I'm trying to setup i18n to use multiple languages on a website.<br />
	Most of the URL rewrite stuff works fine except for the index page.</p>
<p>
	The working URL's are like this: www.domain.com/subfolder/en/news/somepagetitlehere which is fine.</p>
<p>
	But when clicking on the index page (or on the language flag in the langselector on the index) it rewrites to this: www.domain.com/en/subfolder/index.php</p>
<p>
	I have the following in my .htaccess:</p>
<pre class="brush:plain;">
# Rewrite engine options
Options -Indexes
RewriteEngine On

# Server-relative path to Cotonti. Replace it with your path if you run Cotonti
# in a subfolder
RewriteBase "/subfolder"

# Language selector
RewriteRule ^(nl|en)/(.*) $2?l=$1 [QSA,NC,NE]

# Sitemap shortcut
RewriteRule ^sitemap\.xml$ index.php?r=sitemap [L]

# Admin area and message are special scripts
RewriteRule ^admin/([a-z0-9]+) admin.php?m=$1 [QSA,NC,NE,L]
RewriteRule ^(admin|login|message)(/|\?|$) $1.php [QSA,NC,NE,L]

# System category has priority over /system folder
RewriteRule ^system/?$  index.php?rwr=system [QSA,NC,NE,L]

# All the rest goes through standard rewrite gateway
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^?]+) index.php?rwr=$1 [QSA,NC,NE,L]</pre>
]]></description>
			<pubDate>Mo, 24 Sep 2012 00:08:09 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=7119&d=0#post35575]]></link>
		</item>
	</channel>
</rss>