SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Apr 2006
    Posts
    36
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    .htaccess procedure

    Hello,

    I have two .htaccess files - first store some MIME Types for mobile downloads and second store Auth sintax.

    How i make one .htaccess with all data?

    SECOND:

    AuthUserFile /home/username/public_html/.htpasswd
    AuthGroupFile /dev/null
    AuthName "Access to restricted Area"
    AuthType "Basic"

    <Limit GET POST>
    require valid-user
    </Limit>



    FIRST:



    AddType text/vnd.sun.j2me.app-descriptor jad
    AddType application/java-archive jar
    AddType text/vnd.wap.wml wml
    AddType audio/amr amr
    AddType audio/midi mid
    AddType audio/midi midi

    .....................





    Thank you.

  2. #2
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,645
    Mentioned
    19 Post(s)
    Tagged
    3 Thread(s)
    bh,

    .htaccess is merely a text file with an odd extension. Copy from one into the other, save and upload (ASCII) and you'll be set.

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator

  3. #3
    SitePoint Enthusiast
    Join Date
    Apr 2006
    Posts
    36
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up

    Quote Originally Posted by dklynn View Post
    bh,

    .htaccess is merely a text file with an odd extension. Copy from one into the other, save and upload (ASCII) and you'll be set.

    Regards,

    DK

    Thank you. works.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •