<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Tags issue with mod_rewrite</title>
		<link>https://www.cotonti.com</link>
		<description>Last topic posts</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Sun, 05 Apr 2026 01:48:33 -0000</pubDate>

		<item>
			<title>Trustmaster</title>
			<description><![CDATA[This might be caused by the order of .htaccess rules. Specified rules should go before generic rules, so more correct order is:<br />
<pre class="code">RewriteEngine On
RewriteBase /
RewriteRule ^(datas|images|js|skins)/(.*)$ $1/$2 &#091;QSA,NC,NE,L&#093;
RewriteRule ^list/(&#091;^/&amp;?#&#093;+)(.*)$ list.php?c=$1$2 &#091;QSA,NC,NE,L&#093;
RewriteRule ^xml/(&#091;^/&amp;?#&#093;+)(.*)$ xml.php?c=$1$2 &#091;QSA,NC,NE,L&#093;
RewriteRule ^search/(&#091;^/&amp;?#&#093;+)/(.*)$ plug.php?tab=$1&amp;?e=search$2 &#091;QSA,NC,NE,L&#093;
RewriteRule ^tags/(&#091;^/&amp;?#&#093;+)/(&#091;^/&amp;?#&#093;+)/(.*)$ plug.php?a=$1&amp;t=$2&amp;e=tags$3 &#091;QSA,NC,NE,L&#093;
RewriteRule ^contactus(.*)$ plug.php?e=contactus$1 &#091;QSA,NC,NE,L&#093;
RewriteRule ^rss/(&#091;^/&amp;?#&#093;+)(.*)$ rss.php?c=$1$2 &#091;QSA,NC,NE,L&#093;
RewriteRule ^list/(&#091;^/&amp;?#&#093;+)/(.*)$ list.php?c=$1$2 &#091;QSA,NC,NE,L&#093;
RewriteRule ^(&#091;^/&amp;?#&#093;+)/(&#091;^/&amp;?#&#093;+)/(.*)$ page.php?c=$1&amp;al=$2$3 &#091;QSA,NC,NE,L&#093;
RewriteRule ^(&#091;^/&amp;?#&#093;+)/(&#091;^/&amp;?#&#093;+)(.*)$ page.php?c=$1&amp;al=$2$3 &#091;QSA,NC,NE,L&#093;</pre>]]></description>
			<pubDate>Fri, 28 Jan 2011 03:45:58 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=6142&d=0#post28140]]></link>
		</item>
		<item>
			<title>aiwass</title>
			<description><![CDATA[All tags are entered manually when creating the page and aliases are also created manually, since I don't have faith in it being correct. If I were to create aliases automatic, I would ensure that no ' ` ´ or &quot; are in the title field.<br />
<br />
It only affected tags ending with &quot;djs&quot;, but I've altered them all so that they now end with &quot;dj&quot; instead like &quot;plump djs&quot; &gt; &quot;plump dj&quot; etc.]]></description>
			<pubDate>Thu, 27 Jan 2011 20:12:53 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=6142&d=0#post28137]]></link>
		</item>
		<item>
			<title>pieter</title>
			<description><![CDATA[how is the name enterered?<br />
How do you create the aliases?<br />
automatically?<br />
<br />
2 many dj's ----&gt;&gt; 2manydjs?<br />
It is not the ending &quot;s&quot; because 4 strings works.<br />
<br />
Maybe it has something to do with the ' before the s. Maybe the alias as wrongly made.]]></description>
			<pubDate>Thu, 27 Jan 2011 20:05:05 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=6142&d=0#post28136]]></link>
		</item>
		<item>
			<title>aiwass</title>
			<description><![CDATA[Hi guys!<br />
<br />
I have a really strange and puzzling problem with tags on my website, but first I should tell you that it's been mod_rewrite applied and it works, except one tag that just won't play along.<br />
<br />
<strong>The problem tag is this one:</strong><br />
2manydjs = <a href="http://www.megamind.se/tags/pages/2manydjs/" rel="nofollow">http://www.megamind.se/tags/pages/2manydjs/</a> <br />
it returns a 403 - Forbidden (#403)<br />
You don't have permission to access the requested directory or URL that you requested.<br />
Please inform the administrator of the referring page, if you think this was a mistake.<br />
 <br />
Redirecting...<br />
<br />
<strong>YET</strong>, these tags below which also contain numbers are working just fine:<br />
2000 And One / 2020vision recordings / 4 strings / an21 / X-Press 2 / cr2 records / 2Nd Society / dj02 / talla 2xlc / 2 Devine / 2 Fabiola and a hundred or so more<br />
<br />
The mod_rewrite for tags looks like this and is working brilliantly for my 14,899 tags except one...<br />
<strong>.htaccess</strong><br />
<pre class="code">
RewriteEngine On
RewriteBase /
RewriteRule ^(datas|images|js|skins)/(.*)$ $1/$2 &#091;QSA,NC,NE,L&#093;
RewriteRule ^(&#091;^/&amp;?#&#093;+)/(&#091;^/&amp;?#&#093;+)/(.*)$ page.php?c=$1&amp;al=$2$3 &#091;QSA,NC,NE,L&#093;
RewriteRule ^list/(&#091;^/&amp;?#&#093;+)(.*)$ list.php?c=$1$2 &#091;QSA,NC,NE,L&#093;
RewriteRule ^xml/(&#091;^/&amp;?#&#093;+)(.*)$ xml.php?c=$1$2 &#091;QSA,NC,NE,L&#093;
RewriteRule ^search/(&#091;^/&amp;?#&#093;+)/(.*)$ plug.php?tab=$1&amp;?e=search$2 &#091;QSA,NC,NE,L&#093;
RewriteRule ^tags/(&#091;^/&amp;?#&#093;+)/(&#091;^/&amp;?#&#093;+)/(.*)$ plug.php?a=$1&amp;t=$2&amp;e=tags$3 &#091;QSA,NC,NE,L&#093;
RewriteRule ^contactus(.*)$ plug.php?e=contactus$1 &#091;QSA,NC,NE,L&#093;
RewriteRule ^rss/(&#091;^/&amp;?#&#093;+)(.*)$ rss.php?c=$1$2 &#091;QSA,NC,NE,L&#093;
RewriteRule ^list/(&#091;^/&amp;?#&#093;+)/(.*)$ list.php?c=$1$2 &#091;QSA,NC,NE,L&#093;
RewriteRule ^(&#091;^/&amp;?#&#093;+)/(&#091;^/&amp;?#&#093;+)(.*)$ page.php?c=$1&amp;al=$2$3 &#091;QSA,NC,NE,L&#093;
</pre>
<br />
<strong>urltrans.dat</strong><br />
<pre class="code">page	al=*	{$c}/{$al}/
list	c=*	{$_area}/{$c}
xml	c=*	{$_area}/{$c}
plug	?e=search&amp;tab=*	search/{$tab}/
plug	e=tags&amp;a=*&amp;t=*	tags/{$a}/{$t}/
plug	e=contactus	contactus
rss	c=*	{$_area}/{$c}
list	c=*	{$_area}/{$c}/
page	al=*	{$c}/{$al}
*	*	{$_area}.php
</pre>
<br />
Any idea why ONE tag is behaving strange, when others with numbers don't?<br />
Thanks for any advice.<br /><br /><b>Added 29 minutes later:</b><br /><br /><h1>Update</h1>
I found out what is causing the problem and it's even stranger.<br />
<br />
The problem was that I have tags all ending with &quot;djs&quot; like plump djs, sedition djs, 2manydjs, but when I removed the last &quot;s&quot; in &quot;djs&quot; it works, which is a bit strange since the search term is &quot;2manydjs&quot; or &quot;plump djs&quot; not &quot;*djs&quot;. Is it a bug or is &quot;s&quot; some sort of holy cow in the tags system?]]></description>
			<pubDate>Thu, 27 Jan 2011 18:16:26 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=6142&d=0#post28135]]></link>
		</item>
	</channel>
</rss>