• Welcome to Auciou's Blog! Subscibe
  • HomeAbout AuciouArchivesContactSite MapLinks

  • The relation between program and .htaccess file

    Auciou posted on January 10, 2010 at 21:59

    This is just a diary. Apache provides the powerful .htaccess file, actually it realises some of the functions of server configuration. The .htaccess file may write the regular expression, write the correlative commands, etc., these commands will be parsed by Apache, these commands' essential are that start the correlative background programs.

    The functions of .htaccess file which provides by Apache, may realise the special functions, such as make every files invoke the Rewrite module, mod_expires module, every folder appoints the 404 error page, etc.. These are PHP, JSP, Perl and the other none of any language of program may realise directly, because the .htaccess file just realises the functions of server configuration. Whereas, if need the more complicated judgement, the .htaccess file will need to cooperate with the program. As the previous example, http://www.auciou.com/peace/83, use the .htaccess file to combine with PHP program, the .htaccess file appoints the 404 error page, it selects many 404 error page via the judgement of PHP program.

    All of the programs which use the Apache as the server background, such as PHP, may use the .htaccess file. ASP+IIS, or PHP+IIS, can not realise the functions of .htaccess file, because IIS does not support the .htaccess file.

    0 Comment:

    Post a comment:
    Name: (* Required)
    URL:
    Code: q48u58e68s78t88 (* Required)

    Comments:

        Remember? Yes No

    Post a trackback directly

  • Auciou: Programmer

    Peaceful Seabed | My column

    Category:
    Program | Internet | Computer
    Blog Research | PHP | Philosophy


    TDNote | Gratitude | Matnue | Aucist | Aroat | Aufirm | IXNes | Anydiary | Cersta | Coumit | Tovate | Aroat | Aucist | Matnue | Sinvide | Serble | Auciou's column | Peaceful Seabed | Webshu | Sail every day | Sail every day

    Archives:
    January 2011 | January 2010
    December 2009 | October 2009 | September 2009 | April 2009
    December 2008 | November 2008
    May 2007 | April 2007
    August 2005 | July 2005 | June 2005
    May 2005 | April 2005 | March 2005
    February 2005 | January 2005

    Recent articles:
    My Go Daddy hosting is fast
    Create a house with your spouse on the interest
    Pending time which add a domain of hosting, was more than 36 hours
    Diary: 2010-01-15
    Many Linux hostings do not support the mod_expires module
    Figured out, there is still a way
    About the delicated IP of IXWebHosting
    About the QUERY_STRING parameter of URL
    About the ping value and speed of site
    The relation between program and .htaccess file
    Saved a delicated IP
    Judge that does a long-range file exist in PHP
    How to call the Confederation of Planets and the high evolving beings of alien/pray/make a wish
    Use Apache as the local virtual hosting to preview the Blog
    Create the development environment of Apache
    Reinstall Apache and PHP for one step
    The elements of program of preventing the spam and closing IP
    How to close the visit log of ixwebhosting
    Happy Wedding to a friend
    Make an easy Audio/Video converter


  • Copyright © 2007-2025 auciou.com All rights reserved.
    Programmed by Auciou.