Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & phranque

Message Too Old, No Replies

.htaccess rewrite directives to work on Lighttpd

9:40 am on Dec 22, 2013 (gmt 0)

Junior Member

10+ Year Member

joined:June 27, 2004
posts: 98
votes: 0


How can I convert this Apache rewrite rules so they work on Lighttpd?

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule www.(.*) web.php?url=$1
RewriteRule sitemap/(.*) mapdi.php?page=$1
RewriteRule tags_(.*)\.html$ tags.php?keywords=$1
RewriteRule ^([^-]*)-page-([^-]*)\.html$ tags.php?keywords=$1&page=$2 [L]
RewriteRule ^sitemap_([^-]*)\.html$ sitemap_web.php?page=$1 [L]
RewriteRule ^sitemap\.html$ sitemap.php$1 [L]
RewriteRule ^privacy\.html$ privacy.php$1 [L]

I converted some part of the code, but not sure how I can convert

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(.*)/$


Here is what I could convert:

url.rewrite-once = (

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(.*)/$

"www.(.*)" => "web.php?url=$1",
"sitemap/(.*)" => "mapdi.php?page=$1",
"tags_(.*)\.html$" => "tags.php?keywords=$1",
"^([^-]*)-page-([^-]*)\.html$" => "tags.php?keywords=$1&page=$2",
"^sitemap_([^-]*)\.html$" => "sitemap_web.php?page=$1",
"^sitemap\.html$" => "sitemap.php$1",
"^privacy\.html$" => "privacy.php$1"

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members