lighttpd forum migration > joomla rewrite

Posted by Vasilij Goljakin
on 26.05.2006 16:48
Hello, I have hosting on apache.
in apache is all ok, with default rewrite joomla.
but I want use lighttpd in my web server.

it's my example of apache rewrite

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR]
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$  [NC]
RewriteRule ^(content/|component/) index.php

how to use analog of this rewrite rule on lighttpd

help me please

P.S. sorry for my terrible english ;)
Posted by Vasilij Goljakin
on 31.05.2006 09:08
nobody dont know? :(
Posted by Guest (Guest)
on 27.06.2006 17:11
vasilij goljakin wrote:
> Hello, I have hosting on apache.
> in apache is all ok, with default rewrite joomla.
> but I want use lighttpd in my web server.
> 
> it's my example of apache rewrite
> 
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR]
> RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$  [NC]
> RewriteRule ^(content/|component/) index.php
> 
> how to use analog of this rewrite rule on lighttpd
> 
> help me please
> 
> P.S. sorry for my terrible english ;)

I have joomla on /joomla/ -directory and this works for me:

Edit /etc/lighttpd/rewrite.conf:
url.rewrite-once = ( "^/joomla/component/option,(.*)/$" =>
                     "/joomla/index.php?option=$1")

Edit /etc/lighttpd/lighttpd.conf:
Remove comment-mark on
#    "mod_rewrite",
Add line:
include "rewrite.conf"

And then restart lighttpd

P.S. sorry for my terrible english too ;)
Posted by Guest (Guest)
on 05.08.2006 13:17
Guest wrote:
> vasilij goljakin wrote:
>> Hello, I have hosting on apache.
>> in apache is all ok, with default rewrite joomla.
>> but I want use lighttpd in my web server.
>> 
>> it's my example of apache rewrite
>> 
>> RewriteCond %{REQUEST_FILENAME} !-f
>> RewriteCond %{REQUEST_FILENAME} !-d
>> RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR]
>> RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$  [NC]
>> RewriteRule ^(content/|component/) index.php
>> 
>> how to use analog of this rewrite rule on lighttpd
>> 
>> help me please
>> 
>> P.S. sorry for my terrible english ;)
> 
> I have joomla on /joomla/ -directory and this works for me:
> 
> Edit /etc/lighttpd/rewrite.conf:
> url.rewrite-once = ( "^/joomla/component/option,(.*)/$" =>
>                      "/joomla/index.php?option=$1")
> 
> Edit /etc/lighttpd/lighttpd.conf:
> Remove comment-mark on
> #    "mod_rewrite",
> Add line:
> include "rewrite.conf"
> 
> And then restart lighttpd
> 
> P.S. sorry for my terrible english too ;)


this is for the SEF of Joomla, I tried with

$HTTP["host"] =~ "www.mydomain.be|mydomain.be" {
  server.document-root = "/data/www/mydomain.be/htdocs/"
  url.rewrite-once = ( "^/content/option,(.*)/$" =>
                       "/index.php?option=$1")
}

mod_rewrite is enabled, but where can I see if the url is matched and
rewritten? I am asking this this because it doesn't work for me
Posted by pisan (Guest)
on 18.06.2007 16:22
Lighttp Rewrite Rule

am add
url.rewrite-once = ( "^/j/component/option,(.*)/$" =>
                     "/j/index.php?option=$1")

notwork

url.rewrite-once = ( "^/component/option,(.*)/$" =>
                     "/index.php?option=$1")

notwork

http://blog4child.com/j/
http://blog4child.com/j/content/view/1/2/

Help Me plese
Posted by Anthony Ferrara
on 25.06.2007 19:27
pisan wrote:
> Lighttp Rewrite Rule
> 
> am add
> url.rewrite-once = ( "^/j/component/option,(.*)/$" =>
>                      "/j/index.php?option=$1")
> 
> notwork
> 
> url.rewrite-once = ( "^/component/option,(.*)/$" =>
>                      "/index.php?option=$1")
> 
> notwork
> 
> http://blog4child.com/j/
> http://blog4child.com/j/content/view/1/2/
> 
> Help Me plese

compile Lighttpd with mod_magnet ( use the flag --with-lua, see the docs 
for more info), then do the following
in lighttpd.conf
$HTTP["url"] =~ "^.*(html|php|/).*$" {
magnet.attract-physical-path-to = ("/etc/lighttpd/joomla.lua")
}


in joomla.lua
if (not lighty.stat(lighty.env["physical.path"])) then
        lighty.env["physical.path"] = lighty.env["physical.doc-root"] .. 
"index.php"
end
Posted by ?? ??
on 02.09.2007 12:12
url.rewrite-final = (
    "^/images,*$" => "$0",
    "^/templates.*$" => "$0",
    "^/administrator.*$" => "$0",
    "^/(.*\.php)" => "$0",,
    "^/(.*)" => "/index.php/$1"
)

This works for Joomla 1.5 RC2, with options Friendly URL and Mod_rewrite 
enabled.
But its causes high CPU load, any idea why?
Posted by Paolo (Guest)
on 27.12.2007 23:21
?? ?? wrote:
> url.rewrite-final = (
>     "^/images,*$" => "$0",
>     "^/templates.*$" => "$0",
>     "^/administrator.*$" => "$0",
>     "^/(.*\.php)" => "$0",,
>     "^/(.*)" => "/index.php/$1"
> )
> 
> This works for Joomla 1.5 RC2, with options Friendly URL and Mod_rewrite 
> enabled.
> But its causes high CPU load, any idea why?

hi,
any idea for solve the problem?
Help me..
Thanks
Paolo
Posted by Bjoern Dietzel
on 18.01.2008 19:52
There is no need for a htaccess in Joomla.
Just take sh404SEF and youre Joomla-htaccess problem is past :-)
Posted by arman (Guest)
on 03.06.2008 22:24
tIJe2w fdv084y0v4t3cnfv593bv29vb
Posted by map (Guest)
on 09.06.2008 17:50
great work great site thanks http://groups.google.us/group/linkmaps bye 
see you
Posted by Mkpixego (Guest)
on 14.06.2008 09:28
hi nice site thx http://google.us/group/nteens preteen nude girls  9526
Posted by Yyakcqtq (Guest)
on 14.06.2008 09:35
Excellent work, Nice Design http://google.us/group/jteens teen boys 
wearing diapers  8-[[[
Posted by Ifzhldny (Guest)
on 14.06.2008 14:31
great work dude thx http://google.us/group/rteens lacey teen model 
kqpnlj
Posted by ofcouse (Guest)
on 14.06.2008 15:31
Bjoern Dietzel wrote:
> There is no need for a htaccess in Joomla.
> Just take sh404SEF and youre Joomla-htaccess problem is past :-)

it true.. but the url still not pretty.. :p

the url need to include 'index.php' in every url when using no htaccess 
file

i'm interest with joomla.lua usage, can anybody tell what version lua 
that u're using?, coz it doesn't work for me.. mod_magnet loaded, lua 
file correctly configured.
Posted by Plhsstwi (Guest)
on 14.06.2008 19:36
Thanks funny site http://google.us/group/llteens girl teen websites 
43615
Posted by Kamkawcn (Guest)
on 15.06.2008 00:22
Jonny was here http://google.us/group/qteens teenage boys  >:)
Posted by Hhrgxnwd (Guest)
on 15.06.2008 00:28
hi nice site thx http://google.us/group/hteens teens in stockings  :-]]]
Posted by Enhbpghj (Guest)
on 15.06.2008 08:31
cool site 10x http://google.us/group/iiteens lolita index directory jpg 
jpeg  903 http://google.us/group/uuteens ls lolita  :[[
Posted by Andrei Bagrincev
on 24.07.2008 15:54
?? ?? wrote:
> url.rewrite-final = (
>     "^/images,*$" => "$0",
>     "^/templates.*$" => "$0",
>     "^/administrator.*$" => "$0",
>     "^/(.*\.php)" => "$0",,
>     "^/(.*)" => "/index.php/$1"
> )
> 
> This works for Joomla 1.5 RC2, with options Friendly URL and Mod_rewrite 
> enabled.
> But its causes high CPU load, any idea why?

Any ideas how solve this??
For great work virtuemart i add one line in code:

url.rewrite-final = (
    "^/images,*$" => "$0",
    "^/templates.*$" => "$0",
    "^/administrator.*$" => "$0",
    "^/components.*$" => "$0",
    "^/(.*\.php)" => "$0",,
    "^/(.*)" => "/index.php/$1"
)