cotonti.com : [RELEASE] Cotonti Awesome mod_rewrite URL System https://www.cotonti.com Laatste forum onderwerpen Cotonti en Fri, 16 Jan 2026 22:42:27 -0000 tensh I have a question: would the forum rules be still valid in cotonti Siena? I would like forum rewrites very much!
Would it be possible to use Siena's built-in nice urls for the site and additionally nice urls for forums?

]]>
Wo, 22 Aug 2012 17:54:11 -0000
kaossik Hello,

I have succeed to make Lombi's patern work partially at link http://smph.kommet.cz 

First I had to add some special signs into functions.custom.php since there are more of them in our language.

Then yet it works very good for forums only.

all forums like /forums.php?m=topics&s=2 transformed to /forum/volne_povidani-s2.html

this list /list.php?c=news transformed to /news/

but all other lists like /list.php?c=articles failed to do anything

all pages like /page.php?id=170 failed to do anything

 

]]>
Zo, 19 Jun 2011 12:19:05 -0000
Evil http://littledev.ru/news/cotonti/cotontidev/urlpreset.html

]]>
Vr, 27 Mei 2011 06:00:07 -0000
singh336 this mod is giving me a couple errors in firefox, 930 error and also when reloading or going back to home page after the error firefox says the page is in a redirection loop

 

this should be made an official mod/plugin included with cotonti from the packaged releases because its a very poweful mod to have. I had it so close to working.. just the htaccess , there is so much in there i had no idea where to begin to debug... oh well

 

 

 

]]>
Di, 17 Mei 2011 04:32:29 -0000
MUST! http://www.vejica.com/functions.php.rar link broken]]> Za, 03 Apr 2010 06:03:29 -0000 young mone Not Found

The requested URL /forum/test-t14.html was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.]]>
Di, 02 Mrt 2010 10:28:56 -0000
donP

Added 9 days later:

Noone here to answer? :(

Added 32 days later:

This post isn't so visited unfortunately :(
In addiction I can't apply subdomains method cause my server redirected the request to Service Provider Courtesy Page :( What's wrong?]]>
Ma, 18 Jan 2010 22:51:14 -0000
tensh skins/yourskin/plugins/news.tpl
and place the {PAGE_ROW_CAT} tag in the news url ^^
So that it looks: <a href=https://www.cotonti.com/"{PAGE_ROW_CAT}{PAGE_ROW_URL}">
previously: <a href=https://www.cotonti.com/"{PAGE_ROW_URL}">

Hi again;

Ever tried to add a page in the frontend having the advanced url settings as described in article? It redirects me to www.mysite.com//pageid (page not found because no category is in the url)- hmm, what can be wrong?

Do you experience something similar? Hmmm. It's quite irritating. :) The pages are added normally but the after-add redirect is screwed.

Added 120 days later:

Somebody solved the problem described by me?
I still can't get the answer.]]>
Ma, 13 Jul 2009 14:55:09 -0000
Spuner article by Kilandor. Thanks him for that. :-)
But the news plugin conflict with it. Now it have out links as site.com/(page id or alias) and it's give the 404 error, because need to site.com/(page cat(here it's "news"))/(page id or alias)
How it can be fixed?]]>
Zo, 12 Jul 2009 05:48:52 -0000
tensh
"The site cannot be displayed because it uses invalid type of compression."

It happens when I set up advanced url display. I wonder if it can happen due to php accelerators or other types of php cache.

Also, try to login, when using urltrans for username: it also converts user/auth, and so user cannot log in.

See also my comments in your article (and delete them after making use of them)

Edit:

I made a custom function for parsing only users urls:

In fuctions.custom.php:
function users_url_structure(&$args, &$spec)
{
	if ($args['m'] == 'details') 
	{

	$url =  'users/details/'.$args['u'];
	unset($args['u']); 
	unset($args['m']); 
	unset($args['id']); 
	}
	else 
	{ 
	$url = $spec['_area'].'.php'; 
	}

	return $url;
}

In urltrans.dat:

users	*	{users_url_structure()}

In .htaccess:
RewriteRule ^users/([^/&?#]+)/([^/&?#]+)(.*)$ users.php?m=$1&u=$2$3 [QSA,NC,NE,L]

I have no idea if it's coded right (I'm not that experienced in coding), but it works :P

My simple solution for plugins:

In functions.custom.php:

function plug_url_structure(&$args, &$spec)
{
	$url =  'site/'.$args['e'].'.html';
	unset($args['e']);
	
	return $url;
}

In urltrans:
plug	*	{plug_url_structure()}

In htaccess:

RewriteRule ^site/([^/&?#]+)\.html(.*)$ plug.php?e=$1$2 [QSA,NC,NE,L]

I use "site" prefix because all other areas "name.php" are rewritten with "name.html".]]>
Vr, 10 Jul 2009 17:48:38 -0000
Kilandor
http://www.cotonti.com/docs/en/admin/url_modification]]>
Vr, 10 Jul 2009 03:07:19 -0000
Spuner
This is a page with the errors.
revolution_371.rar
In what there can be an error? Maybe it's my error somewhere?]]>
Thu, 09 Jul 2009 15:40:41 -0000
fade2k
Here is one that got my other sites to work on hostgator (in the event someone needs it):

RewriteEngine on
RewriteBase /

# Protect .htaccess and .htpasswd files
<FilesMatch "^\.ht">
  Order allow,deny
  Deny from all
</FilesMatch>

# Protect config.* files
<FilesMatch "^config(\..*)?$">
  Order deny,allow
  Deny from all
</FilesMatch>

# Protect files depending on extension
<FilesMatch "^(.*)\.(inc|inc\.php|tpl|tpl\.php|sql|txt|dat|csv|exe|dll)$">
  Order deny,allow
  Deny from all
</FilesMatch>

# Disable directory browsing
Options -Indexes
]]>
Thu, 09 Jul 2009 13:28:35 -0000
Lombi Thu, 09 Jul 2009 05:49:50 -0000 Spuner
Warning: Missing argument 2 for cot_main_urls(), called in S:\home\revolution-pk.ru\rewrite\system\functions.php on line 4513 and defined in S:\home\revolution-pk.ru\rewrite\system\functions.custom.php on line 124
And this error repeats many times on page.
I try to replace
(com|org|si|net)
to
(com|org|si|net|ru)
but than site don't loads.
It's give an error: 414 Request-URI Too Large
:-(]]>
Thu, 09 Jul 2009 05:48:19 -0000
DemptD
When i go to site.in/articles/test/ i get 950 error, same with the tags, 950 error.

On pages category works but when i click a page inside the category it goes 950.

Could you post the code for the users rewrite?]]>
Zo, 14 Jun 2009 11:59:23 -0000
Lombi Wo, 20 Mei 2009 01:22:34 -0000 chobblr Wo, 20 Mei 2009 01:18:37 -0000 Lombi # chobblr : After doing this i lost the function of the bbcode box and it is now at basic with just the text box, and the sub-domain one does not work for me any tips

Noted. Since it's beta it doesnt have all things working for everyone yet. My sites are running a custom folder solution (all sites sharing one plugin,js and system dir) so what works for me might not work for you.

That said, wildcard subdomaining is something that your host needs to turn on for you. If it's not on it wont work even if you throw a cow at it.]]>
Di, 19 Mei 2009 23:34:50 -0000
chobblr Di, 19 Mei 2009 21:31:35 -0000 fade2k
How difficult would this be to apply to plugins like new pages by path?

[edit]I'm using hostgator also btw^[/edit]]]>
Di, 19 Mei 2009 10:07:21 -0000
zboy812 http://www.com/

I checked everything 5 times. Oh well.

Bummed.



Edit: I wanted add that i have shared hosting, i am with HostGator. In case it help anyone.

The reason i tried to use this cool hack is because my website is installed in a folder /sed i tried to use my cpanel to make a 301 permanent redirect but my server does not like it and is going into endless loop even though i made the .htaccess file from the cpanel?

So i tried this hack to see if it can help me, but now i had to go back to php redirect.]]>
Za, 09 Mei 2009 18:23:32 -0000
Nafanya Rather than address http://site.net.ru obtained http://www.site.net
Rather than address http://www.site.net.ru obtained http://www.site.net]]>
Thu, 23 Apr 2009 22:55:46 -0000
Lombi Thu, 23 Apr 2009 22:21:44 -0000 Nafanya http://site.net.ru or http://www.site.net.ru?
If not, what needs to be corrected?]]>
Thu, 23 Apr 2009 20:44:32 -0000
tensh
I have no clue what to do :)

BTW, I have installed eAccelerator on my server, can this cause any problems?]]>
Di, 21 Apr 2009 17:21:53 -0000
Kort Anyway, I already tried
plug	e=tags&a=*&t=*	tags/{$a)/{$t}.html
but is won't work either because of htaccess settings. Besides, I couldn't make tag search work (on localhost). So, tags only work with original urls.
Another problem is that some admin area urls do not work (tested on localhost only).]]>
Zo, 19 Apr 2009 13:48:32 -0000
Dayver
Lombi:
Once you set it in config.php put the following line into system/functions.php right below define('SED_GROUP_TOPADMINS', 5);:
include('functions.custom.php');
put
include($cfg['system_dir'].'/functions.custom.php');


# Kort : Btw, is there a possibility to rewrite urls for plugins:
plug?e=whosonline
to
whosonline.html?
Try in urltrans.dat
plug	e=*	{$e}.html
or
plug	e=whosonline	whosonline.html

or simply in .htaccess
RewriteRule ^whosonline.html plug.php?e=whosonline

# Kort : Looks like there's a problem here:
plug	e=tags&a=&t=*	{$e}/{$a)/{$t}.html
Otherwise works fine with 0.0.4.
Yes, it is simply mistaken .... should be so
plug	e=tags&a=*&t=*	tags/{$a)/{$t}.html

Anyway Lombi good fellow. And thanks to him for this topic]]>
Za, 18 Apr 2009 01:15:27 -0000
MecTruy ]]> Vr, 17 Apr 2009 16:53:22 -0000 Kort
plug	e=tags&a=&t=*	{$e}/{$a)/{$t}.html
Otherwise works fine with 0.0.4.
Btw, is there a possibility to rewrite urls for plugins:
plug?e=whosonline
to
whosonline.html?]]>
Thu, 16 Apr 2009 13:52:41 -0000
Gökhan YILDIZ main forums and sub-forum link

Main category: main_category-s2.html
Sub category 1: main_category-s3.html
Sub category 2: main_category-s4.html]]>
Vr, 10 Apr 2009 01:16:47 -0000
Lombi Thu, 09 Apr 2009 00:18:07 -0000 pieter
Because for me it is not working.]]>
Thu, 09 Apr 2009 00:12:37 -0000
Lombi # KillerSneak : So what exactly does this URL re-writing do? I still don't get it. If this is/was so important for site stats and search / rankings why wasn't this in the Cotonti release in the first place?

I tought "NO CORE HACKS WILL BE DONE FOR COTONTI" was one of the supposed "GREAT" features? So then why do you release this on the forums? Seems like you're having public beta testing this way (Like nVidia and their "great" drivers) if you have 280 Domains of yourself (seriously doubt that) why even bother releasing beta's outside of your own beta testers/team when the intention is to get this function into a later cotonti release.

Heh, I had this long reply to this post written but when I pressed reply it logged me out (and i lost the reply).

Here we go again...

So what exactly does this URL re-writing do?

It rewrites pages,forum topics and categories. It creates pages with URL structures that rank higher in SERPs. This was tested and confirmed very true (same content on different cotonti installations, one with and one without, with no differing external factors - one heavily outranks the other)

I still don't get it. If this is/was so important for site stats and search / rankings why wasn't this in the Cotonti release in the first place?

It is. All the cotonti URLs are sent trough a sed_url function which creates the URL. At the moment it's replicating the old Seditio URLs, but after all of it is completed it will look like whatever you wish.

I tought "NO CORE HACKS WILL BE DONE FOR COTONTI" was one of the supposed "GREAT" features?

It is. There are more hooks then ever before. But there are functions that cannot be "pluginized" since the entire core uses them.

So then why do you release this on the forums? Seems like you're having public beta testing this way (Like nVidia and their "great" drivers)

This system has been running fine for over two years - now it's been updated for cotonti's url function.

if you have 280 Domains of yourself (seriously doubt that)

Do a reverse report on the nameservers on both servers. If you have time, go trough all domains to check if they're powered by cotonti. They are. But if you want you can doublecheck.

why even bother releasing beta's outside of your own beta testers/team

Having an actual working code to rewrite URLs using the new system was one of the more requested things around here. So it got released before it got implemented.

If you're an early adopter, go ahead and use it. If not, don't. Noone will notice.]]>
Wo, 08 Apr 2009 23:39:52 -0000
KillerSneak
I tought "NO CORE HACKS WILL BE DONE FOR COTONTI" was one of the supposed "GREAT" features? So then why do you release this on the forums? Seems like you're having public beta testing this way (Like nVidia and their "great" drivers) if you have 280 Domains of yourself (seriously doubt that) why even bother releasing beta's outside of your own beta testers/team when the intention is to get this function into a later cotonti release.]]>
Wo, 08 Apr 2009 20:50:18 -0000
Lombi Wo, 08 Apr 2009 19:57:36 -0000 oc
We changed all urls because to not to interfere with the code (in any matter) and do these just using to Admin Urls tool, or we did something really unnecessary.

There are a lot of core hacking and seemingly url system isn't used in the process at all.

So, I don't say this is bad, but as for our rewriting url system, it is not well done.]]>
Wo, 08 Apr 2009 01:42:10 -0000
biro Di, 07 Apr 2009 04:17:30 -0000 musiconly Zo, 05 Apr 2009 03:09:29 -0000 biro
.........]]>
Vr, 03 Apr 2009 02:49:16 -0000