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 2 of 2
  1. #1
    New Coder
    Join Date
    Jan 2004
    Location
    Illinois
    Posts
    72
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Directory

    IS it possible to make the default directory or file in a folder a file in another folder using htaccess?
    Example I have a file "public_html/subfolder/cheese.html" and I want .htaccess to make that the default directory when anyone goes to my "public_html" folder (my main site) anyone?

  • #2
    Regular Coder
    Join Date
    May 2004
    Posts
    121
    Thanks
    0
    Thanked 0 Times in 0 Posts
    A simple redirect will do the job:

    Redirect permanent /index.html http://www.domain.tld/subfolder/cheese.html


  •  

    Posting Permissions

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