<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : I need help with mod_rewrite</title>
		<link>https://www.cotonti.com</link>
		<description>Останні повідомлення в темі</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Fri, 17 Apr 2026 17:41:03 -0000</pubDate>

		<item>
			<title>Twiebie</title>
			<description><![CDATA[<p>Awesome!</p>
]]></description>
			<pubDate>Пт, 03 Січ 2014 21:44:06 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6132&d=0#post38851]]></link>
		</item>
		<item>
			<title>aro747</title>
			<description><![CDATA[<p>Changed to 'Handy' from urltrans.dat and it works perfectly.  Thank you so much!  Really appreciate your help.</p>
]]></description>
			<pubDate>Пт, 03 Січ 2014 21:29:47 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6132&d=0#post38850]]></link>
		</item>
		<item>
			<title>Twiebie</title>
			<description><![CDATA[<p>Did you remove your own ./datas/urltrans.dat file that you created earlier? It's not needed if you are using the handy preset.</p>

<p><span style="line-height:1.6em;">Don't forget to clear the cache in the administration panel after you made any changes.</span></p>
]]></description>
			<pubDate>Пт, 03 Січ 2014 21:23:03 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6132&d=0#post38849]]></link>
		</item>
		<item>
			<title>aro747</title>
			<description><![CDATA[<p>Thanks, that helped a lot.  Almost there.</p>

<p>Now I'm getting:</p>

<pre class="brush:plain;">
/profiles/biopharma/?al=Gilead-Sciences</pre>

<p>I would like to make it:</p>

<pre class="brush:plain;">
/profiles/biopharma/Gilead-Sciences</pre>

<p> </p>
]]></description>
			<pubDate>Пт, 03 Січ 2014 21:09:44 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6132&d=0#post38848]]></link>
		</item>
		<item>
			<title>Twiebie</title>
			<description><![CDATA[<p>The rules should be applied to your main .htaccess file, which should be in the root of your site.</p>

<p>Follow these instructions and you should be good to go:</p>

<p><a href="http://www.cotonti.com/docs/admin/sef_urls#ch1">http://www.cotonti.com/docs/admin/sef_urls#ch1</a></p>
]]></description>
			<pubDate>Пт, 03 Січ 2014 10:42:49 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6132&d=0#post38847]]></link>
		</item>
		<item>
			<title>aro747</title>
			<description><![CDATA[<p>I have completed this by createing the .htaccess and urltrans.dat file in the /datas directory.  Is that correct?</p>

<p>Does the URL Editor plugin need to be running for this to work and what setting for it?  </p>

<p>Right now its like nothing has happened.  All the old urls are working, nothing has changed.  </p>

<p>This is what I have in my site:</p>

<pre class="brush:plain;">
/index.php?e=page&amp;c=biopharma&amp;al=Gilead-Sciences</pre>

<p><span style="line-height:1.6em;">I would like to change it to this:</span></p>

<pre class="brush:plain;">
/profiles/biopharma/Gilead-Sciences</pre>

<p>Thanks for your help.</p>
]]></description>
			<pubDate>Пт, 03 Січ 2014 07:55:32 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6132&d=0#post38846]]></link>
		</item>
		<item>
			<title>aiwass</title>
			<description><![CDATA[Well, it ain't working that's for sure. Everything except lists &amp; pages. And to top things off <a href="http://www.megamind.se/index.php" rel="nofollow">http://www.megamind.se/index.php</a> looks like it's missing a few things....<br />
<br />
<strong>.htaccess</strong><br />
<pre class="code">RewriteEngine On
RewriteBase /

RewriteRule (datas|images|js|skins|plugins|system)/(.*)$ $1/$2 &#091;L&#093;
RewriteCond %{REQUEST_URI} !=cdn-icons/megamind-icon.png
RewriteRule ^admin$	                             admin.php &#091;NC,NE,QSA,L&#093;
RewriteRule ^admin/(&#091;a-z&#093;+)$	                 admin.php?m=$1 &#091;NC,NE,QSA,L&#093;
RewriteRule ^login$                              users.php?m=auth &#091;NC,NE,QSA,L&#093;
RewriteRule ^logout/(.*)$                        users.php?m=logout&amp;x=$1 &#091;NC,NE,QSA,L&#093;
RewriteRule ^users$                              users.php &#091;NC,NE,QSA,L&#093;
RewriteRule ^users/group:(&#091;0-9&#093;+)$               users.php?gm=$1 &#091;NC,NE,QSA,L&#093;
RewriteRule ^users/maingroup:(&#091;0-9&#093;+)$           users.php?g=$1 &#091;NC,NE,QSA,L&#093;
RewriteRule ^users/group:(&#091;0-9&#093;+)/sort:(&#091;a-z&#093;+)-(asc|desc)$   users.php?gm=$1&amp;s=$2&amp;w=$3 &#091;NC,NE,QSA,L&#093;
RewriteRule ^users/maingroup:(&#091;0-9&#093;+)/sort:(&#091;a-z&#093;+)-(asc|desc)$   users.php?g=$1&amp;s=$2&amp;w=$3 &#091;NC,NE,QSA,L&#093;
RewriteRule ^users/group:(&#091;0-9&#093;+)/filter:(.*)$   users.php?gm=$1&amp;f=$2 &#091;NC,NE,QSA,L&#093;
RewriteRule ^users/maingroup:(&#091;0-9&#093;+)/filter:(.*)$   users.php?g=$1&amp;f=$2 &#091;NC,NE,QSA,L&#093;
RewriteRule ^users/group:(&#091;0-9&#093;+)/filter:(.*)/sort:(&#091;a-z&#093;+)-(asc|desc)$   users.php?gm=$1&amp;f=$2&amp;s=$3&amp;w=$4 &#091;NC,NE,QSA,L&#093;
RewriteRule ^users/maingroup:(&#091;0-9&#093;+)/filter:(.*)/sort:(&#091;a-z&#093;+)-(asc|desc)$   users.php?g=$1&amp;f=$2&amp;s=$3&amp;w=$4 &#091;NC,NE,QSA,L&#093;
RewriteRule ^users/sort:(&#091;a-z&#093;+)-(asc|desc)$     users.php?s=$1&amp;w=$2 &#091;NC,NE,QSA,L&#093;
RewriteRule ^users/filter:(.*)$                  users.php?f=$1 &#091;NC,NE,QSA,L&#093;
RewriteRule ^users/filter:(.*)/sort:(&#091;a-z&#093;+)-(asc|desc)$   users.php?s=$1&amp;w=$2 &#091;NC,NE,QSA,L&#093;
RewriteRule ^user/(.*)$                          users.php?m=details&amp;u=$1 &#091;NC,NE,QSA,L&#093;
RewriteRule ^user/edit/(&#091;0-9&#093;+)$                 users.php?m=edit&amp;id=$1 &#091;NC,NE,QSA,L&#093;
RewriteRule ^profile$                            users.php?m=details &#091;NC,NE,QSA,L&#093;
RewriteRule ^profile/edit$                       users.php?m=profile &#091;NC,NE,QSA,L&#093;
RewriteRule ^message/(&#091;0-9&#093;+)$		message.php?msg=$1 &#091;NC,NE,QSA,L&#093;
RewriteRule ^message/(&#091;0-9&#093;+)/(.*)$	message.php?msg=$1&amp;redirect=$2 &#091;NC,NE,QSA,L&#093;

RewriteRule ^(&#091;0-9&#093;+)$				             page.php?id=$1 &#091;NC,NE,QSA,L&#093;
RewriteRule ^(&#091;a-z0-9-/&#093;+)/(&#091;0-9&#093;+)$             page.php?id=$2 &#091;NC,NE,QSA,L&#093;
RewriteRule ^(&#091;a-z0-9-&#093;+)$                       page.php?al=$1 &#091;NC,NE,QSA,L&#093;
RewriteRule ^(&#091;a-z0-9-/&#093;+)/(&#091;a-z0-9-&#093;+)$         page.php?al=$2 &#091;NC,NE,QSA,L&#093;
RewriteRule ^(&#091;a-z0-9-&#093;+)/$                      list.php?c=$1 &#091;NC,NE,QSA,L&#093;
RewriteRule ^(&#091;a-z0-9-/&#093;+)/(&#091;a-z0-9-&#093;+)/$        list.php?c=$2 &#091;NC,NE,QSA,L&#093;</pre>
<br />
urltrans.dat<br />
<pre class="code">list	c=*	{list_url_structure()}
page	*	{page_url_structure()}
message	msg=*&amp;redirect=*	message/{$msg}/{$redirect}
message	msg=*	message/{$msg}
admin	m=*	admin/{$m}
admin	*	admin
users	m=details&amp;id=*&amp;u=*	user/{$u}{!$id}
users	m=details&amp;u=*	user/{$u}
users	m=edit&amp;id=*	user/edit/{$id}
users	m=details	profile
users	m=profile	profile/edit
users	g=*&amp;f=all&amp;s=*&amp;w=*	users/maingroup:{$g}/sort:{$s}-{$w}
users	g=*&amp;f=*&amp;s=*&amp;w=*	users/maingroup:{$g}/filter:{$f}/sort:{$s}-{$w}
users	gm=*&amp;f=all&amp;s=*&amp;w=*	users/group:{$gm}/sort:{$s}-{$w}
users	gm=*&amp;f=*&amp;s=*&amp;w=*	users/group:{$gm}/filter:{$f}/sort:{$s}-{$w}
users	f=all&amp;s=*&amp;w=*	users/sort:{$s}-{$w}
users	f=*&amp;s=*&amp;w=*	users/filter:{$f}/sort:{$s}-{$w}
users	f=*	users/filter:{$f}
users	gm=*	users/group:{$gm}
users	g=*	users/maingroup:{$g}
users	m=register&amp;a=add	register/add
users	m=register	register
users	m=logout&amp;x=*	logout/{$x}
users	m=auth&amp;a=check	login/check
users	m=auth	login
users	*	users
pm	*	pm
rss	*	rss
*	*	{$_area}.php</pre>
<br />
functions.custom.php<br />
<div class="highlight"><pre class="php">
defined('SED_CODE') or die('Wrong URL');
function list_url_structure(&amp;$args, &amp;$spec)
{
    global $sed_cat;
    $url = str_replace('.', '/', $sed_cat&#091;$args&#091;'c'&#093;&#093;&#091;'path'&#093;).'/';
    unset($args&#091;'c'&#093;);
    return $url;
}
function page_url_structure(&amp;$args, &amp;$spec)
{
    global $sed_cat, $pag, $row, $rpagecat;

    $page_cat = (!empty($sed_cat&#091;$rpagecat&#093;&#091;'path'&#093;) &amp;&amp; empty($page_cat)) ? $sed_cat&#091;$rpagecat&#093;&#091;'path'&#093; : $page_cat;
    $page_cat = (!empty($sed_cat&#091;$pag&#091;'page_cat'&#093;&#093;&#091;'path'&#093;) &amp;&amp; empty($page_cat)) ? $sed_cat&#091;$pag&#091;'page_cat'&#093;&#093;&#091;'path'&#093; : $page_cat;
    $page_cat = (!empty($sed_cat&#091;$row&#091;'page_cat'&#093;&#093;&#091;'path'&#093;) &amp;&amp; empty($page_cat)) ? $sed_cat&#091;$row&#091;'page_cat'&#093;&#093;&#091;'path'&#093; : $page_cat;
    $url = str_replace('.', '/', $page_cat).'/';
    if($args&#091;'id'&#093;)
    {
        $url .= $args&#091;'id'&#093;;
        unset($args&#091;'id'&#093;);
    }
    else
    {
        $url .= urlencode($args&#091;'al'&#093;);
        unset($args&#091;'al'&#093;);
    }
    return $url;
}
</pre></div>
<br />
<strong>Added 3 days later:</strong><br />
<br />
<h1><strong>Update!</strong></h1>
The mod_rewrite now works, but with these rules and Rewrites, not the ones mentioned before in the thread:<br />
<br />
<strong>urltrans</strong><br />
<pre class="code">plug	e=contactus	contactus
rss	c=*	{$_area}/{$c}
list	c=*	{$_area}/{$c}
page	al=*	{$c}/{$al}
*	*	{$_area}.php</pre>
<br />
htaccess<br />
<pre class="code">RewriteEngine on
RewriteBase /
RewriteRule (datas|images|pics|cdn-icons|flyers|js|skins|plugins|system)/(.*)$ $1/$2 &#091;L&#093;
RewriteCond %{REQUEST_URI} !=cdn-icons/megamind-icon.png

RewriteRule ^rss/(&#091;^/&amp;?#&#093;+)(.*)$ rss.php?c=$1$2 &#091;QSA,NC,NE,L&#093;
RewriteRule ^contactus(.*)$ plug.php?e=contactus$1 &#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>
<br />
functions.custom<br />
<pre class="code">&lt;?php
defined('SED_CODE') or die('Wrong URL');

function page_url_structure(&amp;$args, &amp;$spec)
{
	global $sed_cat, $pag, $row, $rpagecat;

	$page_cat = (!empty($sed_cat&#091;$rpagecat&#093;&#091;'path'&#093;) &amp;&amp; empty($page_cat)) ? $sed_cat&#091;$rpagecat&#093;&#091;'path'&#093; : $page_cat;
	$page_cat = (!empty($sed_cat&#091;$pag&#091;'page_cat'&#093;&#093;&#091;'path'&#093;) &amp;&amp; empty($page_cat)) ? $sed_cat&#091;$pag&#091;'page_cat'&#093;&#093;&#091;'path'&#093; : $page_cat;
	$page_cat = (!empty($sed_cat&#091;$row&#091;'page_cat'&#093;&#093;&#091;'path'&#093;) &amp;&amp; empty($page_cat)) ? $sed_cat&#091;$row&#091;'page_cat'&#093;&#093;&#091;'path'&#093; : $page_cat;
	$url =  str_replace('.', '/', $page_cat).'/';
	if($args&#091;'id'&#093;)
	{
		$url .= $args&#091;'id'&#093;;
		unset($args&#091;'id'&#093;);
	}
	else
	{
		$url .= urlencode($args&#091;'al'&#093;);
		unset($args&#091;'al'&#093;);
	}
	return $url;
}
function list_url_structure(&amp;$args, &amp;$spec)
{
	global $sed_cat;

	$url = str_replace('.', '/', $sed_cat&#091;$args&#091;'c'&#093;&#093;&#091;'path'&#093;).'/';
	unset($args&#091;'c'&#093;);

	return $url;
}

?&gt;</pre>]]></description>
			<pubDate>Ср, 19 Січ 2011 19:03:16 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6132&d=0#post28016]]></link>
		</item>
		<item>
			<title>GHengeveld</title>
			<description><![CDATA[urltrans.dat is correct (take care of the tabs, they're important).<br />
<br />
As for .htaccess, that looks good too. Just make sure you have this in there as well:<br />
<br />
<pre class="code">Options FollowSymLinks -Indexes -MultiViews
DirectoryIndex index.php

RewriteEngine On
RewriteBase /

RewriteRule ^(datas|images|js|lib|modules|plugins|themes)/(.*)$ $1/$2 &#091;L&#093;</pre>
<br />
Make sure that the rules for page/list are at the bottom in the .htaccess. Also, don't remove the other rules for admin,users etc, because otherwise those pages will become inaccessible. Add these rules for messages to work:<br />
<br />
<pre class="code">RewriteRule ^message/(&#091;0-9&#093;+)$		message.php?msg=$1 &#091;NC,NE,QSA,L&#093;
RewriteRule ^message/(&#091;0-9&#093;+)/(.*)$	message.php?msg=$1&amp;redirect=$2 &#091;NC,NE,QSA,L&#093;</pre>
<br />
You can download my htaccess and urltrans <a href="http://www.cotonti.com/datas/users/cot_rewrite_68.zip">here</a>.]]></description>
			<pubDate>Ср, 19 Січ 2011 18:53:34 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6132&d=0#post28015]]></link>
		</item>
		<item>
			<title>aiwass</title>
			<description><![CDATA[The thing is that everything except lists and pages work. <br />
<br />
Here is an example:<br />
I want to look in the list called &quot;debate&quot; and I type in www.megamind.se/news/debate and I'm transported to www.megamind.se/message/950 which is a blank page. If I instead write www.megamind.se/debate I go to the same place as before www.megamind.se/message/950. So my guess is that it has to do with these rules, with in the URLtrans.dat and .htaccess :<br />
<br />
URLtrans.dat<br />
<pre class="code">list	c=*	{list_url_structure()}
page	*	{page_url_structure()}</pre>
<br />
.htaccess<br />
<pre class="code">RewriteRule ^(&#091;0-9&#093;+)$				 page.php?id=$1 &#091;NC,NE,QSA,L&#093;
RewriteRule ^(&#091;a-z0-9-/&#093;+)/(&#091;0-9&#093;+)$             page.php?id=$2 &#091;NC,NE,QSA,L&#093;
RewriteRule ^(&#091;a-z0-9-&#093;+)$                       page.php?al=$1 &#091;NC,NE,QSA,L&#093;
RewriteRule ^(&#091;a-z0-9-/&#093;+)/(&#091;a-z0-9-&#093;+)$         page.php?al=$2 &#091;NC,NE,QSA,L&#093;
RewriteRule ^(&#091;a-z0-9-&#093;+)/$                      list.php?c=$1 &#091;NC,NE,QSA,L&#093;
RewriteRule ^(&#091;a-z0-9-/&#093;+)/(&#091;a-z0-9-&#093;+)/$        list.php?c=$2 &#091;NC,NE,QSA,L&#093;</pre>]]></description>
			<pubDate>Ср, 19 Січ 2011 18:40:46 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6132&d=0#post28014]]></link>
		</item>
		<item>
			<title>GHengeveld</title>
			<description><![CDATA[Correct, in Genoa it's sed_cat.<br />
Remember that you have to modify the Menu entries in the adminpanel to contain your new URLs.]]></description>
			<pubDate>Ср, 19 Січ 2011 18:31:11 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6132&d=0#post28013]]></link>
		</item>
		<item>
			<title>aiwass</title>
			<description><![CDATA[Take a look at the site now and you'll see that it ain't working. I've done all the steps you've mentioned.<br />
<br />
The only parts that work with the URL rewrite is megamind.se/admin/ and megamind.se/profile/ and nothing else, like pages and lists.<br />
<br />
In the functions.custom.php there is reference to cot_cat but that should be sed_cat.]]></description>
			<pubDate>Ср, 19 Січ 2011 18:07:51 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6132&d=0#post28012]]></link>
		</item>
		<item>
			<title>GHengeveld</title>
			<description><![CDATA[1. Check if $cfg['customfuncs'] is set to TRUE in datas/config.php.<br />
2. In my above example, replace page.php?c= with list.php?c= (it's a Siena thing), for both .htaccess and urltrans.dat.<br />
3. Try emptying your site cache (admin -&gt; other -&gt; internal cache).]]></description>
			<pubDate>Ср, 19 Січ 2011 17:55:09 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6132&d=0#post28011]]></link>
		</item>
		<item>
			<title>aiwass</title>
			<description><![CDATA[@Koradhil <br />
What I've noticed is that error messages are URL rewritten into <a href="http://www.megamind.se/message/950" rel="nofollow">http://www.megamind.se/message/950</a> but nothing else is working as it should. I'm reverting back to alias so that my visitors can enjoy the site while the problem is solved. I've tried both Trustmasters way and your way, but it just won't work. Annoying and rather strange, since I believe you guys know what you are doing, I don't <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/smile.gif" alt=":)" /><br />
<br />
Now my site just displays the header, but without any CSS cosmetics and the source looks like this and it's HTML5:<br />
<div class="highlight"><pre class="html">&lt;!DOCTYPE html&gt;
&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
&lt;title&gt;Megamind Magazine&lt;/title&gt;
&lt;meta charset=&quot;UTF-8&quot;&gt;
&lt;meta name=&quot;description&quot; content=&quot;Megamind Magazine - A online magazine focusing on DJ Culture and Clubbing in and around the Nordic part of Europe.&quot; /&gt;
&lt;meta name=&quot;keywords&quot; content=&quot;Megamind, Megamind Magazine&quot; /&gt;
&lt;meta name=&quot;robots&quot; content=&quot;index,follow&quot;&gt;
&lt;meta name=&quot;Language&quot; content=&quot;en&quot;&gt;
&lt;meta name=&quot;netinsert&quot; content=&quot;0.0.1.4.2.9.1&quot;&gt;
&lt;meta name=&quot;blogcatalog&quot; content=&quot;9BC8730366&quot;&gt;
&lt;meta name=&quot;alexaVerifyID&quot; content=&quot;YMfQhwBI40KNTYIzIWPsepWPZAE&quot;&gt;
&lt;link rel=&quot;stylesheet&quot; href=https://www.cotonti.com/&quot;http://www.megamind.se/skins/2009/2009.css&quot;&gt;
&lt;link rel=&quot;alternate&quot; type=&quot;application/rss+xml&quot; title=&quot;RSS&quot; href=https://www.cotonti.com/&quot;rss.php?c=news&quot;&gt;
&lt;link rel=&quot;alternate&quot; type=&quot;application/rss+xml&quot; title=&quot;Sitemap File XML&quot; href=https://www.cotonti.com/&quot;sitemap.xml&quot;&gt;
&lt;link rel=&quot;canonical&quot; href=https://www.cotonti.com/&quot;http://www.megamind.se&quot;&gt;

&lt;script src=https://www.cotonti.com/&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js&quot;&gt;&lt;/script&gt;&lt;script type=&quot;text/javascript&quot; src=https://www.cotonti.com/&quot;js/base.js&quot;&gt;&lt;/script&gt;
&lt;base href=https://www.cotonti.com/&quot;http://www.megamind.se/&quot; /&gt;
&lt;!-- TradeDoubler site verification 3084 --&gt;
&lt;/head&gt;
&lt;body id=&quot;top&quot;&gt;
&lt;div id=&quot;network&quot;&gt;
&lt;div class=&quot;center-wrapper&quot;&gt;
&lt;header&gt;
&lt;div class=&quot;left&quot;&gt;&lt;a href=https://www.cotonti.com/&quot;index.php&quot; title=&quot;Megamind Magazine&quot;&gt;Megamind Magazine&lt;/a&gt; &lt;span class=&quot;text-separator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;quiet&quot;&gt;Life is a Vacation&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;right&quot;&gt;

&lt;ul class=&quot;tabbed&quot; id=&quot;network-tabs&quot;&gt;
&lt;li&gt;&lt;a href=https://www.cotonti.com/&quot;http://twitter.com/#search?q=%23megamind&quot; title=&quot;#megamind on Twitter&quot;&gt;#megamind&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=https://www.cotonti.com/&quot;http://twitter.com/megaminds/megartists&quot; title=&quot;@megaminds/megartists on Twitter&quot;&gt;@megaminds/megartists&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=https://www.cotonti.com/&quot;http://www.facebook.com/megamindmagazine&quot; title=&quot;Megamind Magazine Fan Page on Facebook&quot;&gt;Facebook Fan Page&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;clearer&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;/header&gt;
&lt;div class=&quot;clearer&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id=&quot;site&quot;&gt;
&lt;div class=&quot;center-wrapper&quot;&gt;
&lt;div id=&quot;header&quot;&gt;

&lt;div class=&quot;right&quot; id=&quot;toolbar&quot;&gt;&lt;a href=https://www.cotonti.com/&quot;plug.php?e=twitti&amp;amp;a=signin&quot;&gt;&lt;img src=&quot;plugins/twitti/img/signin.png&quot; alt=&quot;Sign in with Twitter&quot; width=&quot;150&quot; height=&quot;22&quot;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;clearer&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div id=&quot;site-title&quot;&gt;&lt;a href=https://www.cotonti.com/&quot;index.php&quot; title=&quot;Home&quot;&gt;&lt;img src=https://www.cotonti.com/&quot;cdn-icons/megamind-magazine-new-logo.png&quot; width=&quot;322&quot; height=&quot;81&quot; alt=&quot;This is the new Megamind Magazine logo&quot;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;nav&gt;
&lt;div id=&quot;navboard&quot;&gt;
&lt;div class=&quot;nbcolumn left&quot; id=&quot;nbcolumn-1&quot;&gt;
&lt;div class=&quot;nbcolumn-content&quot;&gt;
&lt;div class=&quot;nbcolumn-title&quot;&gt;&lt;a href=https://www.cotonti.com/&quot;page.php?id=2939&quot; title=&quot;The Articles&quot;&gt;The Articles&lt;/a&gt;&lt;/div&gt;
&lt;ul class=&quot;plain-list&quot;&gt;
&lt;li&gt;&lt;a href=https://www.cotonti.com/&quot;list.php?c=debate&quot; title=&quot;Debate&quot;&gt;Debate&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=https://www.cotonti.com/&quot;list.php?c=newsflash&quot; title=&quot;Newsflash&quot;&gt;Newsflash&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=https://www.cotonti.com/&quot;list.php?c=globalnews&quot; title=&quot;International News&quot;&gt;International News&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=https://www.cotonti.com/&quot;list.php?c=labelnews&quot; title=&quot;Label News&quot;&gt;Label News&lt;/a&gt;&lt;/li&gt;

&lt;li&gt;&lt;a href=https://www.cotonti.com/&quot;list.php?c=reviews&quot; title=&quot;Chronicles &amp;amp; Reviews&quot;&gt;Chronicles &amp;amp; Reviews&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=https://www.cotonti.com/&quot;list.php?c=interviews&quot; title=&quot;Interviews&quot;&gt;Interviews&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;nbcolumn left&quot; id=&quot;nbcolumn-2&quot;&gt;
&lt;div class=&quot;nbcolumn-content&quot;&gt;
&lt;div class=&quot;nbcolumn-title&quot;&gt;&lt;a href=https://www.cotonti.com/&quot;page.php?id=2938&quot; title=&quot;The Playlists&quot;&gt;The Playlists&lt;/a&gt;&lt;/div&gt;
&lt;ul class=&quot;plain-list&quot;&gt;
&lt;li&gt;&lt;a href=https://www.cotonti.com/&quot;list.php?c=djcharts&quot; title=&quot;DJ Charts&quot;&gt;DJ Charts&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=https://www.cotonti.com/&quot;list.php?c=spotify&quot; title=&quot;Spotify Playlists&quot;&gt;Spotify Playlists&lt;/a&gt;&lt;/li&gt;

&lt;li&gt;&lt;a href=https://www.cotonti.com/&quot;list.php?c=housepacific&quot; title=&quot;Housepacific Playlists&quot;&gt;Housepacific Playlists&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=https://www.cotonti.com/&quot;list.php?c=mixes&quot; title=&quot;Mixes &amp; Podcasts&quot;&gt;Mixes &amp; Podcasts&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=https://www.cotonti.com/&quot;list.php?c=trackoftheday&quot; title=&quot;Track of the day&quot;&gt;Track of the day&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;nbcolumn left&quot; id=&quot;nbcolumn-3&quot;&gt;
&lt;div class=&quot;nbcolumn-content&quot;&gt;
&lt;div class=&quot;nbcolumn-title&quot;&gt;&lt;a href=https://www.cotonti.com/&quot;page.php?id=2936&quot; title=&quot;The Industry&quot;&gt;The Industry&lt;/a&gt;&lt;/div&gt;
&lt;ul class=&quot;plain-list&quot;&gt;
&lt;li&gt;&lt;a href=https://www.cotonti.com/&quot;list.php?c=biographies&quot; title=&quot;Artist Biographies&quot;&gt;Artist Biographies&lt;/a&gt;&lt;/li&gt;

&lt;li&gt;&lt;a href=https://www.cotonti.com/&quot;list.php?c=lyrics&quot; title=&quot;EDM Lyrics&quot;&gt;EDM Lyrics&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=https://www.cotonti.com/&quot;list.php?c=competition&quot; title=&quot;Competitions&quot;&gt;Competitions&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=https://www.cotonti.com/&quot;list.php?c=mpndj&quot; title=&quot;Most Popular Nordic DJ&quot;&gt;Most Popular Nordic DJ&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=https://www.cotonti.com/&quot;list.php?c=top100&quot; title=&quot;DJ Mag Top 100 DJs&quot;&gt;DJ Mag Top 100 DJs&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;nbcolumn left normargin&quot; id=&quot;nbcolumn-4&quot;&gt;
&lt;div class=&quot;nbcolumn-content&quot;&gt;
&lt;div class=&quot;nbcolumn-title&quot;&gt;&lt;a href=https://www.cotonti.com/&quot;page.php?id=2937&quot; title=&quot;The Site&quot;&gt;The Site&lt;/a&gt;&lt;/div&gt;
&lt;ul class=&quot;plain-list&quot;&gt;
&lt;li&gt;&lt;a href=https://www.cotonti.com/&quot;list.php?c=sitenews&quot; title=&quot;Site News&quot;&gt;Site News&lt;/a&gt;&lt;/li&gt;

&lt;li&gt;&lt;a href=https://www.cotonti.com/&quot;page.php?id=1&quot; title=&quot;About Megamind Magazine&quot;&gt;About Megamind Magazine&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=https://www.cotonti.com/&quot;plug.php?e=contactus&quot; title=&quot;Contact Us&quot;&gt;Contact Us&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=https://www.cotonti.com/&quot;page.php?id=1707&quot; title=&quot;Shop&quot;&gt;Shop&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=https://www.cotonti.com/&quot;plug.php?e=search&amp;amp;tab=pag&quot; title=&quot;Regular Search&quot;&gt;Regular Search&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=https://www.cotonti.com/&quot;plug.php?e=tags&amp;amp;a=pages&quot; title=&quot;Tag Cloud Search&quot;&gt;Tag Cloud Search&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;nbcolumn right nolmargin&quot; id=&quot;nbcolumn-5&quot;&gt;
&lt;div class=&quot;nbcolumn-content&quot;&gt;
&lt;div class=&quot;nbcolumn-title&quot;&gt;&lt;a href=https://www.cotonti.com/&quot;page.php?id=1330&quot; title=&quot;The Members&quot;&gt;The Members&lt;/a&gt;&lt;/div&gt;&lt;ul class=&quot;plain-list&quot;&gt;

&lt;li&gt;&lt;a href=https://www.cotonti.com/&quot;users.php?m=auth&quot; title=&quot;Login&quot;&gt;Login&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=https://www.cotonti.com/&quot;users.php?m=register&quot; title=&quot;Become a member&quot;&gt;Become a member&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=https://www.cotonti.com/&quot;plug.php?e=passrecover&quot; title=&quot;Lost your password?&quot;&gt;Lost your password?&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;clearer&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;/nav&gt;
&lt;/div&gt;</pre></div>]]></description>
			<pubDate>Ср, 19 Січ 2011 17:25:11 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6132&d=0#post28010]]></link>
		</item>
		<item>
			<title>GHengeveld</title>
			<description><![CDATA[Aliases are needed for the URL rewrite to work. See the following rewriterule:<br />
<pre>RewriteRule ^(.*?).html$ page.php?id=$1</pre>
In this rule, the value for (.*?) on the left is placed in place of $1 on the right (much like variables in PHP). The problem with this is that you can only use numbers, since you're giving the ID of the page. Therefore this rule will only work correctly for URLs like 1.html, 2.html etc. If you want to have URLs that look nice, by using the page title in the URL, you'll have to use the alternative method that Cotonti provides for calling a page, namely by using the 'al' query parameter instead of 'id'. This results in the following rule:<br />
<pre>RewriteRule ^(.*?).html$ page.php?al=$1</pre>
This will allow you to call pages by their alias instead of their ID. In your case you don't have aliases, which makes that this doesn't work. Thats why you need aliases. Fortunately the autoalias2 plugin can automatically generate those, even for already existing pages. I suggest you follow Trustmaster's guidelines to make them look nicer. So, first you update the plugin with the new replacement code, then you run the UPDATE query to remove all existing aliases. Finally you run the plugin again so aliases are re-created for all of your pages.<br />
<br />
The rewriting system in Cotonti consists of two parts: the <strong>Rewrite Rules</strong> in .htaccess, and the <strong>URL Transformation Rules</strong> in datas/urltrans.dat.<br />
<br />
The Rewrite Rules allow your pages to be accessed through better looking URLs. This is not really related to Cotonti since it's just normal Apache server behavior (provided by the mod_rewrite Apache module).<br />
<br />
The URL Transformation Rules are used by Cotonti's cot_url() function to make it output URLs that match the Rewrite Rules. This is needed because the Rewrite Rules only add aliases for URLs. So long as you don't update your site to actually use these aliases, nobody will know they exist (including Google). Cotonti uses the cot_url() function throughout. Basically this function gets a raw (old) URL, but split into separate parts for filename, query parameters (?a=b&amp;c=d) and hash tag (#abc). It then loops through all the rules in urltrans.dat and looks for a match between those parts and any of the URL Transformation Rules. If it finds one, it will map the URL with the rule, basically doing the reverse of what a Rewrite Rule does. In the end all URLs in Cotonti will have a different format, determined by the transformation rules. Google will index these URLs. Of course, every URL Transformation Rule should have a matching Rewrite Rule. You see they work in pairs, one being the inverse of the other.<br />
<br />
By the way, I recommend editing your datas/urltrans.dat directly using a text editor. It's less confusing than the admin tool and makes it easier to edit it in parallel to the .htaccess file.<br /><br /><b>Added 2 hours 2 minutes later:</b><br /><br />Ok, here's a start.<br />
<br />
urltrans.dat:<br />
<pre class="code">page	c=*	{list_url_structure()}
page	*	{page_url_structure()}
message	msg=*&amp;redirect=*	message/{$msg}/{$redirect}
message	msg=*	message/{$msg}
admin	m=*	admin/{$m}
admin	*	admin
users	m=details&amp;id=*&amp;u=*	user/{$u}{!$id}
users	m=details&amp;u=*	user/{$u}
users	m=edit&amp;id=*	user/edit/{$id}
users	m=details	profile
users	m=profile	profile/edit
users	g=*&amp;f=all&amp;s=*&amp;w=*	users/maingroup:{$g}/sort:{$s}-{$w}
users	g=*&amp;f=*&amp;s=*&amp;w=*	users/maingroup:{$g}/filter:{$f}/sort:{$s}-{$w}
users	gm=*&amp;f=all&amp;s=*&amp;w=*	users/group:{$gm}/sort:{$s}-{$w}
users	gm=*&amp;f=*&amp;s=*&amp;w=*	users/group:{$gm}/filter:{$f}/sort:{$s}-{$w}
users	f=all&amp;s=*&amp;w=*	users/sort:{$s}-{$w}
users	f=*&amp;s=*&amp;w=*	users/filter:{$f}/sort:{$s}-{$w}
users	f=*	users/filter:{$f}
users	gm=*	users/group:{$gm}
users	g=*	users/maingroup:{$g}
users	m=register&amp;a=add	register/add
users	m=register	register
users	m=logout&amp;x=*	logout/{$x}
users	m=auth&amp;a=check	login/check
users	m=auth	login
users	*	users
pm	*	pm
rss	*	rss
*	*	{$_area}.php</pre>
<br />
.htaccess:<br />
<pre class="code">RewriteRule ^admin$	                             admin.php &#091;NC,NE,QSA,L&#093;
RewriteRule ^admin/(&#091;a-z&#093;+)$	                 admin.php?m=$1 &#091;NC,NE,QSA,L&#093;
RewriteRule ^login$                              users.php?m=auth &#091;NC,NE,QSA,L&#093;
RewriteRule ^logout/(.*)$                        users.php?m=logout&amp;x=$1 &#091;NC,NE,QSA,L&#093;
RewriteRule ^users$                              users.php &#091;NC,NE,QSA,L&#093;
RewriteRule ^users/group:(&#091;0-9&#093;+)$               users.php?gm=$1 &#091;NC,NE,QSA,L&#093;
RewriteRule ^users/maingroup:(&#091;0-9&#093;+)$           users.php?g=$1 &#091;NC,NE,QSA,L&#093;
RewriteRule ^users/group:(&#091;0-9&#093;+)/sort:(&#091;a-z&#093;+)-(asc|desc)$   users.php?gm=$1&amp;s=$2&amp;w=$3 &#091;NC,NE,QSA,L&#093;
RewriteRule ^users/maingroup:(&#091;0-9&#093;+)/sort:(&#091;a-z&#093;+)-(asc|desc)$   users.php?g=$1&amp;s=$2&amp;w=$3 &#091;NC,NE,QSA,L&#093;
RewriteRule ^users/group:(&#091;0-9&#093;+)/filter:(.*)$   users.php?gm=$1&amp;f=$2 &#091;NC,NE,QSA,L&#093;
RewriteRule ^users/maingroup:(&#091;0-9&#093;+)/filter:(.*)$   users.php?g=$1&amp;f=$2 &#091;NC,NE,QSA,L&#093;
RewriteRule ^users/group:(&#091;0-9&#093;+)/filter:(.*)/sort:(&#091;a-z&#093;+)-(asc|desc)$   users.php?gm=$1&amp;f=$2&amp;s=$3&amp;w=$4 &#091;NC,NE,QSA,L&#093;
RewriteRule ^users/maingroup:(&#091;0-9&#093;+)/filter:(.*)/sort:(&#091;a-z&#093;+)-(asc|desc)$   users.php?g=$1&amp;f=$2&amp;s=$3&amp;w=$4 &#091;NC,NE,QSA,L&#093;
RewriteRule ^users/sort:(&#091;a-z&#093;+)-(asc|desc)$     users.php?s=$1&amp;w=$2 &#091;NC,NE,QSA,L&#093;
RewriteRule ^users/filter:(.*)$                  users.php?f=$1 &#091;NC,NE,QSA,L&#093;
RewriteRule ^users/filter:(.*)/sort:(&#091;a-z&#093;+)-(asc|desc)$   users.php?s=$1&amp;w=$2 &#091;NC,NE,QSA,L&#093;
RewriteRule ^user/(.*)$                          users.php?m=details&amp;u=$1 &#091;NC,NE,QSA,L&#093;
RewriteRule ^user/edit/(&#091;0-9&#093;+)$                 users.php?m=edit&amp;id=$1 &#091;NC,NE,QSA,L&#093;
RewriteRule ^profile$                            users.php?m=details &#091;NC,NE,QSA,L&#093;
RewriteRule ^profile/edit$                       users.php?m=profile &#091;NC,NE,QSA,L&#093;

RewriteRule ^(&#091;0-9&#093;+)$				 page.php?id=$1 &#091;NC,NE,QSA,L&#093;
RewriteRule ^(&#091;a-z0-9-/&#093;+)/(&#091;0-9&#093;+)$             page.php?id=$2 &#091;NC,NE,QSA,L&#093;
RewriteRule ^(&#091;a-z0-9-&#093;+)$                       page.php?al=$1 &#091;NC,NE,QSA,L&#093;
RewriteRule ^(&#091;a-z0-9-/&#093;+)/(&#091;a-z0-9-&#093;+)$         page.php?al=$2 &#091;NC,NE,QSA,L&#093;
RewriteRule ^(&#091;a-z0-9-&#093;+)/$                      page.php?c=$1 &#091;NC,NE,QSA,L&#093;
RewriteRule ^(&#091;a-z0-9-/&#093;+)/(&#091;a-z0-9-&#093;+)/$        page.php?c=$2 &#091;NC,NE,QSA,L&#093;</pre>
<br />
Custom functions:<br />
<div class="highlight"><pre class="php">function list_url_structure(&amp;$args, &amp;$spec)
{
    global $cot_cat;
    $url = str_replace('.', '/', $cot_cat&#091;$args&#091;'c'&#093;&#093;&#091;'path'&#093;).'/';
    unset($args&#091;'c'&#093;);
    return $url;
}
function page_url_structure(&amp;$args, &amp;$spec)
{
    global $cot_cat, $pag, $row, $rpagecat;
 
    $page_cat = (!empty($cot_cat&#091;$rpagecat&#093;&#091;'path'&#093;) &amp;&amp; empty($page_cat)) ? $cot_cat&#091;$rpagecat&#093;&#091;'path'&#093; : $page_cat;
    $page_cat = (!empty($cot_cat&#091;$pag&#091;'page_cat'&#093;&#093;&#091;'path'&#093;) &amp;&amp; empty($page_cat)) ? $cot_cat&#091;$pag&#091;'page_cat'&#093;&#093;&#091;'path'&#093; : $page_cat;
    $page_cat = (!empty($cot_cat&#091;$row&#091;'page_cat'&#093;&#093;&#091;'path'&#093;) &amp;&amp; empty($page_cat)) ? $cot_cat&#091;$row&#091;'page_cat'&#093;&#093;&#091;'path'&#093; : $page_cat;
    $url = str_replace('.', '/', $page_cat).'/';
    if($args&#091;'id'&#093;)
    {
        $url .= $args&#091;'id'&#093;;
        unset($args&#091;'id'&#093;);
    }
    else
    {
        $url .= urlencode($args&#091;'al'&#093;);
        unset($args&#091;'al'&#093;);
    }
    return $url;
}</pre></div>]]></description>
			<pubDate>Ср, 19 Січ 2011 05:52:16 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6132&d=0#post28008]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[It is a second step. Now you can edit your URLs (Admin =&gt; Other =&gt; URLs) so that you add such rules to your datas/urltrans.dat:<br />
<pre class="code">list	c=*	/{$c}/
page	*	{page_url_structure()}
*	*	{$_area}.php</pre>
Page URLs would need a function, since they don't have category names in their parameters. Create a file <em>system/functions.custom.php</em> and add a function to make page urls:<br />
<div class="highlight"><pre class="php">function page_url_structure(&amp;$args)
{
	global $sed_cat, $pag, $row, $rpagecat, $c, $newpagecat;


	$page_cat = (!empty($sed_cat&#091;$rpagecat&#093;&#091;'path'&#093;) &amp;&amp; empty($page_cat)) ? $sed_cat&#091;$rpagecat&#093;&#091;'path'&#093; : $page_cat;
	$page_cat = (!empty($sed_cat&#091;$pag&#091;'page_cat'&#093;&#093;&#091;'path'&#093;) &amp;&amp; empty($page_cat)) ? $sed_cat&#091;$pag&#091;'page_cat'&#093;&#093;&#091;'path'&#093; : $page_cat;
	$page_cat = (!empty($sed_cat&#091;$row&#091;'page_cat'&#093;&#093;&#091;'path'&#093;) &amp;&amp; empty($page_cat)) ? $sed_cat&#091;$row&#091;'page_cat'&#093;&#093;&#091;'path'&#093; : $page_cat;
	//$page_cat = (!empty($sed_cat&#091;$args&#091;'c'&#093;&#093;&#091;'path'&#093;) &amp;&amp; empty($page_cat)) ? $sed_cat&#091;$args&#091;'c'&#093;&#093;&#091;'path'&#093; : $page_cat;
	$page_cat = (!empty($sed_cat&#091;$newpagecat&#093;&#091;'path'&#093;) &amp;&amp; empty($page_cat)) ? $sed_cat&#091;$newpagecat&#093;&#091;'path'&#093; : $page_cat;

	if (empty($page_cat)) $page_cat = 'articles';
	if($args&#091;'id'&#093;)
	{
		$url = $page_cat.'/';
		$url .= $args&#091;'id'&#093; . '/';
		unset($args&#091;'id'&#093;);
	}
	elseif($args&#091;'al'&#093;)
	{
		$url = $page_cat.'/';
		$url .= urlencode($args&#091;'al'&#093;) . '/';
		unset($args&#091;'al'&#093;);
	}
	return $url;
}</pre></div>
<br />
And finally add mod_rewrite rules to your .htaccess:<br />
<pre class="code"># Rewrite engine options
Options FollowSymLinks -Indexes
RewriteEngine On
# Path to Cotonti
RewriteBase /

# Protect static paths
RewriteRule (datas|images|js|skins|plugins|system)/(.*)$ $1/$2 &#091;L&#093;

# Pages by ID
RewriteRule (&#091;a-z&#093;+)/(&#091;0-9&#093;+)/ page.php?id=$2 &#091;QSA,NC,NE,L&#093;
# Pages by alias
RewriteRule (&#091;a-z&#093;+)/(&#091;a-zA-Z0-9\-_&#093;+)/ page.php?al=$2 &#091;QSA,NC,NE,L&#093;
# Category
RewriteRule (&#091;a-z&#093;+)/ list.php?c=$1 &#091;QSA,NC,NE,L&#093;
</pre>]]></description>
			<pubDate>Ср, 19 Січ 2011 05:25:21 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6132&d=0#post28007]]></link>
		</item>
		<item>
			<title>aiwass</title>
			<description><![CDATA[How does aliases then work with a mod_rewrite?<br />
The URLS now are longer then before with just ID. I really need a URL rewrite in order to get this working better, cause Aliases are not really what I'm looking for, as stated above.]]></description>
			<pubDate>Ср, 19 Січ 2011 04:38:44 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6132&d=0#post28006]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[A patch for alias generating function, open <em>plugins/autoalias2/inc/autoalias2.functions.php</em> at line 31 and replace<br />
<div class="highlight"><pre class="php">$title = str_replace(' ', $cfg&#091;'plugin'&#093;&#091;'autoalias2'&#093;&#091;'sep'&#093;, $title);</pre></div>
with<br />
<div class="highlight"><pre class="php">$title = preg_replace('#\s+#', $cfg&#091;'plugin'&#093;&#091;'autoalias2'&#093;&#091;'sep'&#093;, $title);</pre></div>
and then try to reassign aliases to those pages (using Admin =&gt; Tools =&gt; AutoAlias2). Before that you might need to reset your aliases with an SQL query:<br />
<div class="highlight"><pre class="mysql">UPDATE sed_pages SET page_alias = '';</pre></div>
or edit problematic aliases manually.]]></description>
			<pubDate>Ср, 19 Січ 2011 04:30:42 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6132&d=0#post28005]]></link>
		</item>
		<item>
			<title>aiwass</title>
			<description><![CDATA[<span style="text-decoration:line-through">So basically I have to set aliases for roughly 6000 pages in order to get mod_rewrite happening on my website?<br />
<br />
I should have gone for Wordpress back in 2002, then this problem wouldn't have existed. FUCK!</span><br />
<br />
So, 5155 pages now have aliases, but it ain't pretty!<br />
Ex: <a href="http://www.megamind.se/page.php?al=track-of-the-day---18th-january-2011" rel="nofollow">http://www.megamind.se/page.php?al=track-of-the-day---18th-january-2011</a>]]></description>
			<pubDate>Ср, 19 Січ 2011 03:30:14 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6132&d=0#post28004]]></link>
		</item>
		<item>
			<title>GHengeveld</title>
			<description><![CDATA[Yes, can be done, but it will require you to set a page alias for every page. The above mentioned autoalias2 plugin can help with that. Also it will require a custom function that generates the URLs based on category structure.]]></description>
			<pubDate>Ср, 19 Січ 2011 03:25:54 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6132&d=0#post28003]]></link>
		</item>
		<item>
			<title>aiwass</title>
			<description><![CDATA[<strong>My idea (if feasible) is to the following structure/paths:</strong><br />
www.megamind.se/debate/<br />
www.megamind.se/labelnews/<br />
www.megamind.se/djcharts/<br />
according to the list in my initial post above etc. etc.<br />
<br />
<strong>And pages within those above stated categories (this might be the hardest one):</strong><br />
www.megamind.se/debate/a-vote-is-everything-in-a-poll/ =&gt; www.megamind.se/page.php?id=4861<br />
www.megamind.se/labelnews/shifted-presents-drained/ =&gt; www.megamind.se/page.php?id=5509<br />
www.megamind.se/djcharts/alexi-delano-january-chart/ =&gt; www.megamind.se/page.php?id=5485<br />
according to the list in my initial post above etc. etc.<br />
<br />
<strong>OR</strong><br />
<br />
www.megamind.se/debate/4861/ =&gt; www.megamind.se/page.php?id=4861<br />
www.megamind.se/labelnews/5509/ =&gt; www.megamind.se/page.php?id=5509<br />
www.megamind.se/djcharts/5485/ =&gt; www.megamind.se/page.php?id=5485<br />
according to the list in my initial post above etc. etc.<br />
<br />
<strong>FORUMS</strong><br />
I'm going to delete the forums from the site, since no one is using them, they are only available for members anyway.<br />
<br />
Is it doable?]]></description>
			<pubDate>Ср, 19 Січ 2011 03:20:24 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6132&d=0#post28002]]></link>
		</item>
		<item>
			<title>GHengeveld</title>
			<description><![CDATA[If you mean the autoalias plugin, that's something entirely different.<br />
Try a google search for mod_rewrite and you'll know what we mean.]]></description>
			<pubDate>Ср, 19 Січ 2011 03:16:18 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6132&d=0#post28001]]></link>
		</item>
		<item>
			<title>Kingsley</title>
			<description><![CDATA[Ok, confused noob here <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/smile.gif" alt=":)" /><br />
<br />
isn't this kinda what the page aliases plug-in does?]]></description>
			<pubDate>Ср, 19 Січ 2011 03:09:29 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6132&d=0#post28000]]></link>
		</item>
		<item>
			<title>GHengeveld</title>
			<description><![CDATA[I can help you, but first you should decide on what you want the URLs to look like in the end. This is crucial for SEO, and changing it afterwards is not really an options (SEO-wise but also because of dead links). Things to think of:<br />
<br />
- Do you want to use 'subfolders', so the path to a file in the CMS is also the path in the URL? This complicates things a lot but looks much better.<br />
- Do you have other site areas to rewrite, such as forums?<br />
- File extension (.html seems to be best for SEO, but no extension at all looks better)<br />
<br />
I think it's a good idea to develop a SEO-friendly and cross-site implementation here, so we can put it in documentation, or even provide it with Cotonti by default.<br />
<br />
Here's an example:<br />
<pre>/path/to/somefolder =&gt; list.php?c=somefolder
/somefolder =&gt; list.php?c=somefolder
/path/to/somepage.html =&gt; page.php?al=somepage
/somepage.html =&gt; page.php?al=somepage
/path/to/someID.html =&gt; page.php?id=someID
/someID.html =&gt; page.php?id=someID
/forums/somesection/sometopictitle.html =&gt; forums.php?m=posts&amp;q=sometopicID
/path/to/somefolder.rss =&gt; rss.php?c=somefolder</pre>]]></description>
			<pubDate>Ср, 19 Січ 2011 01:40:41 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6132&d=0#post27999]]></link>
		</item>
		<item>
			<title>aiwass</title>
			<description><![CDATA[I've been searching in the forums and taken a look at the documentation, but still I don't know what to do. It's hieroglyphs to me, this whole thing with mod_rewrite. All I want is nice URLS on my website instead of the page.php?id=5517 etc. Can anyone help on how to do this and also setting it up, basically a &quot;mod_rewrite for dummies&quot; for Cotonti in mind?!<br />
<br />
<strong>My site structure (category names)</strong><br />
news<br />
- sitenews<br />
- housepacific<br />
- writeup<br />
- bio<br />
- lyrics<br />
- interviews<br />
- top100<br />
- mpndj<br />
- wtop<br />
- comp<br />
- newsflash<br />
- megamind<br />
- trackoftheday<br />
- spotify<br />
- dj-charts<br />
- mixes<br />
- debate<br />
- global-news<br />
- releases<br />
<br />
festivalguides<br />
- festivals2009<br />
-- nordic09<br />
-- eu09<br />
- festivals2008<br />
-- nordic08<br />
-- eu08<br />
- festivals2007<br />
-- nordic07<br />
-- eu07<br />
- festivals2006<br />
-- nordic06<br />
-- eu06<br />
- festivals2005<br />
-- nordic05<br />
-- eu05<br />
<br />
Anyone want to help? I badly need it done and I would be thankful for all and any help making it a reality.]]></description>
			<pubDate>Вт, 18 Січ 2011 22:37:43 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6132&d=0#post27998]]></link>
		</item>
	</channel>
</rss>