Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2007
    Location
    Melbourne, Australia
    Posts
    411

    Exclamation Help! Convert .htaccess to lighthttpd rewrite rule

    How do I go about converting the follow .htaccess file

    Code:
    RewriteEngine On
    RewriteBase /
    
    
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteCond %{REQUEST_FILENAME} /blogs/(clientscript|images)/
    RewriteRule ^(.*)$ $1 [L]
    
    RewriteRule ^blogs/([-a-z0-9] )/([-a-z0-9] )-([0-9] )/comment-([0-9] )\.html blogs/viewblog.php?username=$1&entrytitle=$2&entry=$3&c=$4 [QSA,L]
    RewriteRule ^blogs/([-a-z0-9] )/([-a-z0-9] )-([0-9] )/feed/ blogs/syndication.php?entry=$3 [QSA,L]
    RewriteRule ^blogs/([-a-z0-9] )/([-a-z0-9] )-([0-9] )/ blogs/viewblog.php?username=$1&entrytitle=$2&entry=$3 [QSA,L]
    RewriteRule ^blogs/([-a-z0-9] )/category/([-a-z0-9] )\.html blogs/viewblog.php?username=$1&categorydata=$2 [QSA,L]
    RewriteRule ^blogs/([-a-z0-9] )/([0-9]{4})/([0-9]{1,2})/ blogs/viewblog.php?username=$1&month=$3&year=$2 [QSA,L]
    RewriteRule ^blogs/([-a-z0-9] )/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2}).html blogs/viewblog.php?username=$1&month=$3&year=$2&day=$4 [QSA,L]
    RewriteRule ^blogs/([-a-z0-9] )/archive.html blogs/viewblog.php?username=$1&displaymode=archive [QSA,L]
    RewriteRule ^blogs/([-a-z0-9] )/feed/ blogs/syndication.php?username=$1 [QSA,L]
    RewriteRule ^blogs/([-a-z0-9] )/ blogs/viewblog.php?username=$1 [QSA,L]
    to work with lighthttpds rules?

    I would really appreciate it if someone could help me convert this!!


  2. #2
    Join Date
    Dec 2006
    Posts
    4,151
    Post this in forum.lighttpd.net for possibly better response

  3. #3
    Join Date
    Apr 2007
    Location
    Melbourne, Australia
    Posts
    411
    No luck there... anyone else here know how to convert this?


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •