Wallpaper Script Forum » How-To and Troubleshooting

Settings for lighttpd?

(2 posts)
  1. invi121
    Member

    Lots of servers now are using lighttpd and they don't support .htaccess. This is your default .htaccess

    #php_flag display_errors On
    #Options +FollowSymlinks
    RewriteEngine Off
    RewriteEngine On

    #change / with the relative path if you install the script in a subdirectory
    #RewriteBase /wallpaperscript.com/script/

    #This is for redirecting links with any subdomain to no subdomain
    #RewriteCond %{HTTP_HOST} ^(.+).wallpapers.net [NC]
    #RewriteRule ^(.*)$ http://wallpapers.net/$1 [R=301,NC,L]

    #This is for redirecting links without trailing / to links with trailing /
    #RewriteCond %{REQUEST_FILENAME} !-f
    #RewriteCond %{REQUEST_URI} !(.*)\.(.+){3,4}
    #RewriteCond %{REQUEST_URI} !(.*)/$
    #RewriteRule ^(.*)$ /$1/ [L,R=301]

    #RewriteRule /([/]*)/([^/]*)/([^/]*)-desktop-wallpapers([^/]*)(/){0,1}([^/]*)$ $4-desktop-wallpapers$5$6$7
    #RewriteRule /([/]*)/([^/]*)-desktop-wallpapers([^/]*)(/){0,1}([^/]*)$ $3-desktop-wallpapers$4$5$6
    #RewriteRule /([/]*)-desktop-wallpapers([^/]*)(/){0,1}([^/]*)$ $2-desktop-wallpapers$3$4$5
    #RewriteRule /([/]*)/([^/]*)/([^/]*)-wallpapers([^/]*)(/){0,1}([^/]*)$ $4-wallpapers$5$6$7
    #RewriteRule /([/]*)/([^/]*)-wallpapers([^/]*)(/){0,1}([^/]*)$ $3-wallpapers$4$5$6
    #RewriteRule /([/]*)-wallpapers([^/]*)(/){0,1}([^/]*)$ $2-wallpapers$3$4$5

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php?%{QUERY_STRING}&resource=$1 [L]

    My question is are there any ways you could convert this to lighttpd format so we could add it on our lighttpd.conf file? This will solve other people's problem too like "logging in" problems, "not found" problems, etc.. Thanks

    Posted 2 years ago #
  2. vaggos
    Member

    I had asked the same question, the support told me what to try to add in lighttpd but it didn't work.

    Posted 2 years ago #

RSS feed for this topic

Reply

You must log in to post.