Форумы / Cotonti / Extensions / [RELEASE] Cotonti Awesome mod_rewrite URL System

<<<1234>>>

Dayver
#31 18.04.2009 01:15
if you have a some problems with Lombi mod_rewrite URL System try instead
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
Pavlo Tkachenko aka Dayver
Отредактировано: Dayver (18.04.2009 02:35, 15 лет назад)
Kort
#32 19.04.2009 13:48
Imo this url should look like site.com/tags/sometag/.
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).
SED.by - создание сайтов, разработка плагинов и тем для Котонти
tensh
#33 21.04.2009 17:21
I cannot get it to work. Firefox returns an error: "The invalid or not used methods or compression were used, site cannot be displayed". IE just says "site cannot be displayed". No error pages...

I have no clue what to do :)

BTW, I have installed eAccelerator on my server, can this cause any problems?
Nafanya
#34 23.04.2009 20:44
Will these rules work, if the site is the third-level domain, the address http://site.net.ru or http://www.site.net.ru?
If not, what needs to be corrected?
Lombi
#35 23.04.2009 22:21
Depends on what you're using. If you're not using subdomains you should probably be fine. But we need to tweak this.
<a href="http://www.domenlo.com">Surreal Art</a>
Nafanya
#36 23.04.2009 22:55
I held the test does not work.
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
zboy812
#37 09.05.2009 18:23
I tried this and now my site only goes to 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.
Отредактировано: zboy812 (10.05.2009 02:26, 14 лет назад)
fade2k
#38 19.05.2009 10:07
Thanks Lombi, it works very well for me (with shared hosting).

How difficult would this be to apply to plugins like new pages by path?

[edit]I'm using hostgator also btw^[/edit]
- Be Kind, Please Rewind -
chobblr
#39 19.05.2009 21:31
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
Lombi
#40 19.05.2009 23:34
# 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.
<a href="http://www.domenlo.com">Surreal Art</a>
chobblr
#41 20.05.2009 01:18
how do i go back to the normal URL as i cannot submit post ether
Lombi
#42 20.05.2009 01:22
You revert all the changes you made from my first post.
<a href="http://www.domenlo.com">Surreal Art</a>
DemptD
#43 14.06.2009 11:59
I got the forums working but the pages wont work...

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?
Отредактировано: DemptD (14.06.2009 12:11, 14 лет назад)
Spuner
#44 09.07.2009 05:48
I try it. But it don't want to work.
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
:-(
Lombi
#45 09.07.2009 05:49
Guess we might need to strip the advanced subdomain redirection out...
<a href="http://www.domenlo.com">Surreal Art</a>

<<<1234>>>