Forum

Mistake with HOWTO for Joomla+SEF

Alex
13 January 2010, 13:28
Hello Hugo,

I have discovered a small mistake with your HOWTO [www.hiawatha-webserver.org], it is about SEF for Joomla, please change this.

This must look so:

UrlToolkit {
ToolkitID = joomla
Match ^/(administrator)/ Exit
Match mosConfig_[a-zA-Z_]{1,21}(=|\%3D) DenyAccess
Match base64_encode.*\(.*\) DenyAccess
Match (\<|%3C).*script.*(\>|%3E) DenyAccess
Match GLOBALS(=|\[|\%[0-9A-Z]{0,2}) DenyAccess
Match _REQUEST(=|\[|\%[0-9A-Z]{0,2}) DenyAccess
RequestURI exists Return
Match .* Rewrite /index.php
}

Pay attention please to "Match ^/(administrator)/ Exit", otherwise do not function Backend of Joomla properly

Greeting Alex.

Hiawatha version: 6.19
Operating System: Debian Lenny
Alex
13 January 2010, 13:43
oops..
unfortunately, I must find out that my solution also does not function, sorry
How should I exclude the administrator folder from SEF?

Greeting Alex.
Hugo Leisink
13 January 2010, 15:16
I have no problem what so ever with accessing the administrator part of a Joomla website with that rule. What problems do you get?
Alex
13 January 2010, 15:36
Hi Hugo,

many thanks for your quick answer.
I must say that there is already a pair of problems with rewrite engine.

1. The Links ods not work, for example "Save of configuration" Firebug report Error:
[table] [tr] [td]submitbutton is not defined
http://www.mysite.de/administrator/index.php?option=com_config
Line 1[/td] [/tr] [/table]

2. The Frontend also does not function properly, Firebug tell me:
[table] [tr] [td]writeDynaList is not defined
http://www.mysite.de/de/component/virtuemart/?page=shop.registration
Line 1237[/td] [/tr] [/table]

I hope this are no bad mistakes

Greeting Alex.
Alex
13 January 2010, 15:41
function onclick(event) { javascript: submitbutton("apply"); }(click clientX=1090, clientY=140)
Hugo Leisink
13 January 2010, 16:09
Remove the line "Match (\<|%3C).*script.*(\>|%3E) DenyAccess" from the rewrite rule and try again, please.
Alex
13 January 2010, 16:20
hey..
thank yu Hugo

however, is it not dangerous to comment out the line?
Hugo Leisink
13 January 2010, 16:22
That depends on how secure Joomla's code is I will try to find out why that line is causing trouble. Stay tuned.
Alex
13 January 2010, 16:27
to many many thanks Hugo, your Supprot is great!!!
I remain with hiawatha-webserver
Hugo Leisink
13 January 2010, 16:29
You're welcome
Hugo Leisink
13 January 2010, 23:27
Try changing "Match (\<|%3C).*script.*(\>|%3E) DenyAccess" into "Match (<|%3C).*script.*(>|%3E) DenyAccess". Thus without the backslashes.
Alex
14 January 2010, 00:25
Yes, its work
thank you Hugo, but what was, actually, the problem with the backslashes?
Hugo Leisink
14 January 2010, 07:47
Don't know. I'm not a regexp guru.
This topic has been closed.