Project

General

Profile

redirect domain.com to www.domain.com

Added by scub almost 15 years ago

i am able to redirect domain.com to www.domain.com but how can i make it so it doesn't add the file extention?

example:

$HTTP["host"] == "domain.com" {
url.redirect = ("/(.*)$" => "http://www.domain.com/$1")
}

but if i type: domain.com/file it redirects to www.domain.com/file.cgi
how can i get it to leave out the extension since it wasn't in the URL to begin with?

thanks


Replies (1)

RE: redirect domain.com to www.domain.com - Added by nitrox almost 15 years ago

atm. i can only imagine a rewrite rule being active too. rewrite is executed before redirect.

    (1-1/1)