CodeIgniter methods for LIGHTTPD server URL rewriting, codeigniter_php tutorial

Source: Internet
Author: User
Tags codeigniter

CodeIgniter method for lighttpd server URL rewriting, CodeIgniter


This example describes the CodeIgniter method for LIGHTTPD server URL overrides. Share to everyone for your reference. The implementation method is as follows:

Since the development environment uses the LIGHTTPD server, my native environment uses the Apache configuration, which causes all the link addresses to jump to the first page after deployment to the development machine.

Analysis of the next, Index.php/controller/function, controller does not take effect, should be the reason for routing distribution.

To configure a URL rewrite rule for a lighttpd configuration:

Url.rewrite-once = ("/(. *) \. (. *) "= +", "/(css|files|img|js|stats)/" = "+", "^/([^.] +) $ "="/index.php/$1 ")

Another Apache URL rewrite rule is attached:

 
  
   
     Proxypreservehost on   documentroot "D:/program files/xampp/htdocs/xxx"   ServerName xxx.baidu.com   DirectoryIndex index.php   
  
   
    
         Options Indexes followsymlinks    allowoverride all    Order Allow,deny    allow  
  
    from all
 
  

Restart LIGHTTPD service, ok!

I hope this article is helpful to everyone based on CodeIgniter PHP program design.

http://www.bkjia.com/PHPjc/1014430.html www.bkjia.com true http://www.bkjia.com/PHPjc/1014430.html techarticle codeigniter for lighttpd server URL rewriting methods, CodeIgniter This article describes the CodeIgniter method for lighttpd server URL rewriting. Share to everyone for your reference. Specific ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.