anyone using lighttpd?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xanx
    Confirmed User
    • Apr 2002
    • 3711

    #1

    anyone using lighttpd?

    How in the world do you do a 301 redirect, I just want to point to a file from it's old location to the new but can't seem to find any documentation on this.
  • Inter-Sex
    Confirmed User
    • Nov 2005
    • 2231

    #2
    Sorry, thought a 403

    Comment

    • AdultEUhost
      ORLY?
      • Oct 2005
      • 2579

      #3
      url.rewrite-once = ( "^/file.html" => "http://www.domain.com/file.php")
      ICQ: 267-443-722 / leon [at] adulteuhost [dotcom]

      Nominated for an XBIZ Award as "Webhost of the Year" in 2007, 2012, 2013 and 2014

      Comment

      • AdultEUhost
        ORLY?
        • Oct 2005
        • 2579

        #4
        Or you can also use:

        $HTTP["host"] =~ “www.domain.com” {
        url.redirect = (
        ”^/file.html” => “http://www.domain2.com/file.php″
        )
        }
        ICQ: 267-443-722 / leon [at] adulteuhost [dotcom]

        Nominated for an XBIZ Award as "Webhost of the Year" in 2007, 2012, 2013 and 2014

        Comment

        • xanx
          Confirmed User
          • Apr 2002
          • 3711

          #5
          ah, ok makes sense, thanks man

          Comment

          • HomerSimpson
            Too lazy to set a custom title
            • Sep 2005
            • 13826

            #6
            lighty all the way...
            Make a bank with Chaturbate - the best selling webcam program
            Ads that can't be block with AdBlockers !!! /// Best paying popup program (Bitcoin payouts) !!!

            PHP, MySql, Smarty, CodeIgniter, Laravel, WordPress, NATS... fixing stuff, server migrations & optimizations... My ICQ: 27429884 | Email:

            Comment

            • AdultEUhost
              ORLY?
              • Oct 2005
              • 2579

              #7
              Originally posted by xanx
              ah, ok makes sense, thanks man
              you're welcome
              ICQ: 267-443-722 / leon [at] adulteuhost [dotcom]

              Nominated for an XBIZ Award as "Webhost of the Year" in 2007, 2012, 2013 and 2014

              Comment

              Working...