tag:blogger.com,1999:blog-1326504627034329396.post-8375725028708628892007-11-06T20:00:00.000+02:002008-01-11T20:01:27.920+02:00Joomla Rewrite rules for lighttpd for SEF URLs<div style="text-align: left;"><p> 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.. </p> <p> 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 .. </p> <p> NOTE: rules may not appear correctly due to some page formating problems, but you can copy and paste safely </p> <p> url.rewrite-repeat = (<br />"^/content/view/(.*)$" => "/index.php?option=com_content&task=view&id=$1",<br />"^/content/blogsection/(.*)$" => "/index.php?option=com_content&task=blogsection&id=$1",<br />"^/content/blogcategory/(.*)$" => "/index.php?option=com_content&task=blogcategory&id=$1",<br />"^/component/option,(.*)$" => "/index.php?option=$1",<br />)<br /></p> <p> </p> <p>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 .. </p> <p> </p> <p> url.rewrite-final = (<br />"^/ar/content/view/(.*)$" => "/ar/index.php?option=com_content&task=view&id=$1",<br />"^/ar/content/blogsection/(.*)$" => "/ar/index.php?option=com_content&task=blogsection&id=$1",<br />"^/ar/content/blogcategory/(.*)$" => "/ar/index.php?option=com_content&task=blogcategory&id=$1",<br />"^/ar/component/option,(.*)$" => "/ar/index.php?option=$1",<br /><br />"^/en/content/view/(.*)$" => "/en/index.php?option=com_content&task=view&id=$1",<br />"^/en/content/blogsection/(.*)$" => "/en/index.php?option=com_content&task=blogsection&id=$1",<br />"^/en/content/blogcategory/(.*)$" => "/en/index.php?option=com_content&task=blogcategory&id=$1",<br />"^/en/component/option,(.*)$" => "/en/index.php?option=$1",<br />)<br /> </p> <p> </p> <p> </p> <p>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 .. </p></div>Amr_not_Amrhttp://www.blogger.com/profile/13587127328874582386noreply@blogger.com