top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is htaccess in PHP?

+2 votes
453 views
What is htaccess in PHP?
posted Jun 3, 2014 by Rahul Mahajan

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

0 votes

htaccess is a configuration file for use on web servers running the Apache Web Server software.When a .htaccess file is placed in a directory which is in turn 'loaded via the Apache Web Server', then the .htaccess file is detected and executed by the Apache Web Server software. These .htaccess files can be used to alter the configuration of the Apache Web Server software to enable/disable additional functionality and features that the Apache Web Server software has to offer.

answer Jun 4, 2014 by Mohit Sharma
0 votes

.htaccess is a configuration file for use on web servers running the Apache Web Server software. When a .htaccess file is placed in a directory which is in turn 'loaded via the Apache Web Server', then the .htaccess file is detected and executed by the Apache Web Server software. These .htaccess files can be used to alter the configuration of the Apache Web Server software to enable/disable additional functionality and features that the Apache Web Server software has to offer. These facilities include basic redirect functionality, for instance if a 404 file not found error occurs, or for more advanced functions such as content password protection or image hot link prevention.

answer Jun 4, 2014 by Rahul Singh
Similar Questions
0 votes

To get html pages to use php scripts, I've used:

RewriteEngine on
# handler for phpsuexec. -- this makes these prefixes considered for php

SetHandler application/x-httpd-php

In a .htaccess file.
However, it works on one site, but not on another -- any ideas as to why?

+1 vote

I'm facing a problem and i don't know where to start and in fact, how to do it.

Situation:
Users of my website should be able to save their resume files + cover letters on my webserver.

Problem:
How to make their file SECURED from any hack ? I mean only file owner and web administrator (so in this case... myself) should have access to those files. never user B should be able to access, read or download files of user A.

my guess:
I was thinking to store files outside public_html folder, in the following way:

/resumes/user A/resume A
/resumes/user A/cover letter A
/resumes/user B/resume B - US
/resumes/user B/resume B - ES
/resumes/user B/cover letter B

Questions:
1. how can i allow user to have access to folder/files outside public_html ?
2. how can i secure that user A has access to his own files ONLY ?

I searched on internet for some help but i did not find anything really relevant...only theory and no really in details.

...