Results 1 to 6 of 6
  1. #1
    TravG's Avatar
    TravG is offline Private Member
    Join Date
    September 2008
    Posts
    2,069
    Thanks
    34
    Thanked 179 Times in 131 Posts

    Default Extra htaccess file

    I have a wordpress site and use an htaccess file to do redirects. I noticed when I opened my website with Filezilla there is another htaccess file at the top level of my folders (the root I guess maybe).

    So to be clear, when I open my website with Filezilla the top level folder is just a slash (/) then I go to the "public_html" folder and that is where my actual wordpress files are and the htaccess file that I created. This other htaccess file is at the same level as the "public_html" folder.

    Here is the contents of the htaccess file in question, and my question is should I delete it? I do not know how it got there and what its purpose is. And question #2, if I do delete it, should I add the content to my real htaccess file?

    <IfModule mod_deflate.c>
    SetOutputFilter DEFLATE
    <IfModule mod_setenvif.c>
    # Netscape 4.x has some problems...
    BrowserMatch ^Mozilla/4 gzip-only-text/html

    # Netscape 4.06-4.08 have some more problems
    BrowserMatch ^Mozilla/4\.0[678] no-gzip

    # MSIE masquerades as Netscape, but it is fine
    # BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

    # NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48
    # the above regex won't work. You can use the following
    # workaround to get the desired effect:
    BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html

    # Don't compress images
    SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary
    </IfModule>

    <IfModule mod_headers.c>
    # Make sure proxies don't deliver the wrong content
    Header append Vary User-Agent env=!dont-vary
    </IfModule>
    </IfModule>



    Thanks - Travis
    Live Casino USA - the best USA live online casinos. Play USA online slots and other casino games like USA online blackjack. Play See USAlegalcasinos.com to find the best USA online casino. Want to play USA online poker? Find the best poker sites at 4DeucesPoker.com.

  2. #2
    allfreechips's Avatar
    allfreechips is offline Private Member
    Join Date
    August 2010
    Location
    Ohio - The taxing state
    Posts
    1,628
    Thanks
    220
    Thanked 830 Times in 524 Posts

    Default

    The highest level is first, anything below that over rides what is above it...

    But, only opposing command over ride, anything not opposed continues downstream.


    so you could have deny all in root, but have allow all in html root and everyone can visit.
    AFC MEDIA LLC COMPLETE GAMING AFFILIATE SOLUTION
    Statsfetch.com
    secure / powerful inexpensive stats fetch system - Free for 20 provers always
    Allmediamatter
    Interface for casino owners/managers to add their affiliates and brands to feed ezcasinoaff
    Allfreechips -
    My 24 year old SEO casino site

  3. #3
    TravG's Avatar
    TravG is offline Private Member
    Join Date
    September 2008
    Posts
    2,069
    Thanks
    34
    Thanked 179 Times in 131 Posts

    Default

    OK thanks. So the lower one that has my redirects should (and does) work right? Should I just delete the one that has the info above? Im not sure what that even is doing?
    Live Casino USA - the best USA live online casinos. Play USA online slots and other casino games like USA online blackjack. Play See USAlegalcasinos.com to find the best USA online casino. Want to play USA online poker? Find the best poker sites at 4DeucesPoker.com.

  4. #4
    allfreechips's Avatar
    allfreechips is offline Private Member
    Join Date
    August 2010
    Location
    Ohio - The taxing state
    Posts
    1,628
    Thanks
    220
    Thanked 830 Times in 524 Posts

    Default

    Well the higher one you posted is telling it to compress items and to not alter user agents from browsers, I would not change that unless you are handling that at a lower level or in another way.
    AFC MEDIA LLC COMPLETE GAMING AFFILIATE SOLUTION
    Statsfetch.com
    secure / powerful inexpensive stats fetch system - Free for 20 provers always
    Allmediamatter
    Interface for casino owners/managers to add their affiliates and brands to feed ezcasinoaff
    Allfreechips -
    My 24 year old SEO casino site

  5. #5
    TravG's Avatar
    TravG is offline Private Member
    Join Date
    September 2008
    Posts
    2,069
    Thanks
    34
    Thanked 179 Times in 131 Posts

    Default

    OK Thanks. So the bottom line I guess is the extra file is not going to hurt anything..... I just need to be aware the lower level file will override the higher level one.
    Live Casino USA - the best USA live online casinos. Play USA online slots and other casino games like USA online blackjack. Play See USAlegalcasinos.com to find the best USA online casino. Want to play USA online poker? Find the best poker sites at 4DeucesPoker.com.

  6. #6
    allfreechips's Avatar
    allfreechips is offline Private Member
    Join Date
    August 2010
    Location
    Ohio - The taxing state
    Posts
    1,628
    Thanks
    220
    Thanked 830 Times in 524 Posts

    Default

    Only over rides if it conflicts with the higher one! Otherwise all settings flow down through all levels
    AFC MEDIA LLC COMPLETE GAMING AFFILIATE SOLUTION
    Statsfetch.com
    secure / powerful inexpensive stats fetch system - Free for 20 provers always
    Allmediamatter
    Interface for casino owners/managers to add their affiliates and brands to feed ezcasinoaff
    Allfreechips -
    My 24 year old SEO casino site

Posting Permissions

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