Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: ".htaccess"

  1. #1
    Regular Coder Mihai's Avatar
    Join Date
    Jan 2008
    Posts
    122
    Thanks
    14
    Thanked 0 Times in 0 Posts

    ".htaccess"

    does the .htaccess file is universal , i mean i have a main site and a subdomain ***.com and subdomanin.***.com so this means that if i want my subdomain to be mobile ready do i add

    AddType text/x-pcs-gcd .gcd

    AddType text/vnd.sun.j2me.app-descriptor .jad

    AddType application/java-archive .jar

    AddType text/x-hdml .hdml

    AddType text/vnd.wap.wml .wml

    AddType text/vnd.wap.wmlscript .wmls

    AddType image/vnd.wap.wbmp .wbmp

    AddType audio/x-midi .mid

    AddType audio/vnd.qcelp .qcp

    AddType image/png .png


    To the subdomani httaccess or direcly on the main site httacces ?


  • #2
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by Mihai View Post
    does the .htaccess file is universal , i mean i have a main site and a subdomain ***.com and subdomanin.***.com so this means that if i want my subdomain to be mobile ready do i add

    AddType text/x-pcs-gcd .gcd

    AddType text/vnd.sun.j2me.app-descriptor .jad

    AddType application/java-archive .jar

    AddType text/x-hdml .hdml

    AddType text/vnd.wap.wml .wml

    AddType text/vnd.wap.wmlscript .wmls

    AddType image/vnd.wap.wbmp .wbmp

    AddType audio/x-midi .mid

    AddType audio/vnd.qcelp .qcp

    AddType image/png .png


    To the subdomani httaccess or direcly on the main site httacces ?

    in the .htaccess of each subdomain. There is no 'main site .htaccess' because is a per director thing,

    regards

  • #3
    Regular Coder Mihai's Avatar
    Join Date
    Jan 2008
    Posts
    122
    Thanks
    14
    Thanked 0 Times in 0 Posts
    so if i have a main director file that contains my "html_public" for my main site and all the subdomanis and if i place the httpdacces file on the "root" of my site ( "html_public' ) then i have universal acces ? or do i stil need to place another one in html_public/subdomain_site/.httpdacces ?

  • #4
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by Mihai View Post
    so if i have a main director file that contains my "html_public" for my main site and all the subdomanis and if i place the httpdacces file on the "root" of my site ( "html_public' ) then i have universal acces ? or do i stil need to place another one in html_public/subdomain_site/.httpdacces ?
    let's say the domain is 'jiji.com'. then for:

    subdomain_site.jiji.com must have one .htaccess in public_html/subdomain_site/

    for:
    jiji.com or www.jiji.com you must have a .htaccess in
    public_html/

    regards

  • #5
    Regular Coder Mihai's Avatar
    Join Date
    Jan 2008
    Posts
    122
    Thanks
    14
    Thanked 0 Times in 0 Posts
    thank you



  •  

    Posting Permissions

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