ChrisMartino Posted January 5, 2012 Share Posted January 5, 2012 Hey there, Basically I'm having an issue where once I have ported over my apache htaccess rules they no longer work on my LightTPD server here is the code that worked on apache: RewriteEngine on Options +FollowSymlinks RewriteBase / RewriteRule \.(css|jpe?g|gif|png|js)$ - [L] RewriteRule ^([^/]*)$ index.php?v=$1 [NC,L] RewriteRule ^([^/]*)/([^/]*)$ index.php?v=$1&uvara=$2 [NC,L] RewriteRule ^([^/]*)/([^/]*)/([^/]*)$ index.php?v=$1&uvara=$2&uvarb=$3 [NC,L] RewriteRule ^([^/]*)/([^/]*)/([^/]*)/([^/]*)$ index.php?v=$1&uvara=$2&uvarb=$3&uvarc=$4 [NC,L] And now the code that I converted to LightTPD: url.rewrite-once = ( "^([^/]*)$" => "index.php?v=$1", "^([^/]*)/([^/]*)$" => "index.php?v=$1&uvara=$2", "^([^/]*)/([^/]*)/([^/]*)$" => "index.php?v=$1&uvara=$2&uvarb=$3", "^([^/]*)/([^/]*)/([^/]*)/([^/]*)$" => "index.php?v=$1&uvara=$2&uvarb=$3&uvarc=$4" ) But the conversion doesn't work? No value ever gets passed on the first parameter when one is specified as example.com/variable Thanks for your time! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.