After so much searching on google, joomla forums and lighttpd website .. I didn't find any complete working rewrite rules for joomla that can replace, peacefully, the .htaccess file of joomla that depends on apache's mod_rewrite module..
I'd to do this on two websites I administrate, the 1st is one had the Joomla URL on its documentroot directly , where the joomla URL is http://domain.com/ ... here are the rules for it ..
NOTE: rules may not appear correctly due to some page formating problems, but you can copy and paste safely
url.rewrite-repeat = (
"^/content/view/(.*)$" => "/index.php?option=com_content&task=view&id=$1",
"^/content/blogsection/(.*)$" => "/index.php?option=com_content&task=blogsection&id=$1",
"^/content/blogcategory/(.*)$" => "/index.php?option=com_content&task=blogcategory&id=$1",
"^/component/option,(.*)$" => "/index.php?option=$1",
)
that other website had two joomla webpages, the 1st one URl is like this http://mydomain.com/ar/ , and the second one URL is like this, http://mydomain.com/en/ .. here are the rules for it ..
url.rewrite-final = (
"^/ar/content/view/(.*)$" => "/ar/index.php?option=com_content&task=view&id=$1",
"^/ar/content/blogsection/(.*)$" => "/ar/index.php?option=com_content&task=blogsection&id=$1",
"^/ar/content/blogcategory/(.*)$" => "/ar/index.php?option=com_content&task=blogcategory&id=$1",
"^/ar/component/option,(.*)$" => "/ar/index.php?option=$1",
"^/en/content/view/(.*)$" => "/en/index.php?option=com_content&task=view&id=$1",
"^/en/content/blogsection/(.*)$" => "/en/index.php?option=com_content&task=blogsection&id=$1",
"^/en/content/blogcategory/(.*)$" => "/en/index.php?option=com_content&task=blogcategory&id=$1",
"^/en/component/option,(.*)$" => "/en/index.php?option=$1",
)
These rules has been tested on lighttpd 1.5 and are already working very nicely on production web servers however I do not guarantee that they may work for you ..

1 التعليقات:
Thank you very much. Your rewrite rules worked for me. Finally, after much hunting around, I got my Joomla+lighttpd working.
إرسال تعليق