Results 1 to 4 of 4

Thread: .Htaccess problem

  1. #1
    Join Date
    Sep 2005
    Posts
    229

    .Htaccess problem

    Hello, I have one .htaccess on a page of my site which is under construction with EasyPHP and when I test my page, it ignores it and displays the page as if nothing had happened ... What may be the problem here?
    Thank you

  2. #2
    Join Date
    Dec 2007
    Posts
    1,547

    re: .Htaccess problem

    It depends what you put in the file .Htaccess ^ ^

    When you make your site in PHP, you are often required to create an "Admin" where access is limited ... And it's better because people who have access to the Admin area can generally be deleted if they wish.

    Suppose you create a folder "Admin" in which there are all the files in your site administration. How to prevent anyone accessing these pages?

    This is where the files .Htaccess will help us: you can easily create protection for Login / password that prevents access to all files in the folder.

    We will have to create 2 files:
    .htaccess file: This file will contain the address of. htpasswd and some other options you can define.
    .htpasswd: this file contains a list of logins / passwords for each person authorized to access the pages!

  3. #3
    Join Date
    Dec 2007
    Posts
    765

    re: .Htaccess problem

    Are you running a dedicated box or a shared hosting package?
    Of youre on a dedicated box you can set .htaccess as an "over-ride" file.

    IF YOU MAKE ANY CHANGED TO YOUR HTTPD.CONF FILE ALWAYS BACK IT UP BEFORE YOU DO SO!

    On your httpd.cong filne this directive...
    AccessFileName directive

    make sure the following is set
    AccessFileName .htaccess

    In short this is telling Apache to accept modifications to it's configuration based on .htaccess files

    Also note .htaccess is an Apache concept, and will not work on non apache servers.
    No TechArena No Experts, Know TA know Experts!

  4. #4
    Join Date
    Dec 2007
    Posts
    1,736

    Re: .Htaccess problem

    Be more specific. What browser? What URL? What's in the .htaccess?

    Learn how to make backups and practice a few restores. that way when something like this happens you can restore to a previous known good state.

Similar Threads

  1. .htaccess with a session duration
    By Jaxine in forum Software Development
    Replies: 5
    Last Post: 19-01-2010, 08:28 PM
  2. How to use .htaccess file
    By Antarjot in forum Operating Systems
    Replies: 3
    Last Post: 09-12-2009, 01:40 PM
  3. Problem with .htaccess on Mac OS X
    By austin26 in forum Software Development
    Replies: 3
    Last Post: 03-12-2009, 06:00 PM
  4. Problem with upload_max_filesize with .htaccess
    By Bhagesh in forum Software Development
    Replies: 2
    Last Post: 29-05-2009, 05:16 PM
  5. .htaccess and error 403
    By CitricAcid in forum Software Development
    Replies: 4
    Last Post: 27-04-2009, 12:24 PM

Tags for this Thread

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
  •  
Page generated in 1,714,913,441.37560 seconds with 17 queries