Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 06-04-2009
Member
 
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
Reply With Quote
  #2  
Old 06-04-2009
Member
 
Join Date: Dec 2007
Posts: 1,542
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!
Reply With Quote
  #3  
Old 06-04-2009
Member
 
Join Date: Dec 2007
Posts: 762
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!
Reply With Quote
  #4  
Old 06-04-2009
Member
 
Join Date: Dec 2007
Posts: 1,728
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.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags:



Thread Tools Search this Thread
Search this Thread:

Advanced Search


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


All times are GMT +5.5. The time now is 05:48 PM.