Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2008
    Location
    Halifax, NS
    Posts
    272
    Plugin Contributions
    0

    help question .htaccess not working???

    Yes i'm trying to get my .htaccess file working on a pleask sever..

    It just a basic one that i'm using..

    Code:
    <Files *.php>
    Order Deny,Allow
    Deny from all
    </Files>
    
    <Files *.txt>
    Order Deny,Allow
    Deny from all
    </Files>
    WHen i put it up i get the lovely


    Object not found!
    The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.

    If you think this is a server error, please contact the webmaster.

    Error 404

    Apache/2.2.4 (Linux/SUSE)

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: .htaccess not working???

    Have you asked your hosting company why adding a FILES directive to your .htaccess is throwing errors? It could be that they've restricted that sort of thing in their server configuration, and you'll have to work with them to find a suitable workaround.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Aug 2008
    Location
    Halifax, NS
    Posts
    272
    Plugin Contributions
    0

    Default Re: .htaccess not working???

    I did manage to get a SEO .htaccess file for a mod working.. but this simple on won't work..

    unless they have somehting blocked for this code that i'm using..

    ARGGG..

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: .htaccess not working???

    For FILES directives to work, the host must have set the AllowOverride option to "Limit" or "All" in the server's Apache httpd.conf settings.
    That's something *you* have no control over.

    You can read up on the topic by searching for .htaccess on the Apache website.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. v150 To Redirect or .htaccess or not
    By dochsa in forum General Questions
    Replies: 8
    Last Post: 10 Sep 2012, 07:13 PM
  2. Replies: 13
    Last Post: 26 Jun 2012, 10:27 PM
  3. Admin not working after adding custom mod_rewrite to .htaccess
    By quit in forum Installing on a Linux/Unix Server
    Replies: 11
    Last Post: 29 May 2011, 04:50 AM
  4. .htaccess url mask not working
    By support in forum General Questions
    Replies: 1
    Last Post: 5 Oct 2010, 05:22 PM
  5. 301 redirect in htaccess not working
    By FrenchFrog in forum General Questions
    Replies: 10
    Last Post: 24 Aug 2007, 12:36 AM

Posting Permissions

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