Need help urgent!! how to get .htaccess files to work with lighttpd?

Discussion in 'Programming' started by Hipto, Apr 17, 2010.

  1. #1
    Ths rule were suppose to be in public_html htaccess

    RewriteEngine on

    Options +FollowSymlinks
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?link=$1
    RewriteRule ^link([^/]*).html$ rewrite.php?link=$1 [L]


    But after installing lightted, my server guy change it and add it to /etc/lighttpd/lighttpd.conf as

    url.rewrite-once = ( "^link([^/]*).html$" => "/rewrite.php?link=$1",
    ".*\.(js|ico|gif|jpg|png|css|php|)$" => "$0",
    "^/(.*)$" => "/index.php?link=$1")


    but isn't working. Someone please advice.
     
    Hipto, Apr 17, 2010 IP
  2. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #2
    remove from the .conf and let your .htaccess handle the rewriting of urls
     
    ccoonen, Apr 17, 2010 IP
  3. kishor212

    kishor212 Guest

    Messages:
    124
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Remove . Conf file.. find the .htaaccess file and enter the commands there..!

    Always give power to htaaccess regarding URLS... Thats It..! it will do the thing better..!
     
    kishor212, Apr 17, 2010 IP