Search the forums for AddHandler
ShawnCplus
Code Monkey
1,583 posts since Apr 2005
Reputation Points: 526
Solved Threads: 268
pritaeas
Posting Expert
5,480 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
First welcome to daniweb as I see your a new poster.
Second, please don't bump really old topics again as it can be really annoying at times. Especially for those who have subscribed to the thread.
And as for the answer, in your /mg2/ directory place a htaccess file with the following code.
order deny<strong>,</strong>allow
deny from all
cwarn23
Occupation: Genius
3,033 posts since Sep 2007
Reputation Points: 413
Solved Threads: 259
Thank you and sorry for bumping old topic...
Back to the subject... I did as you told me... and still nothing
This what my root directory .htaccess file looks like
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName elitedvservices.com
AuthUserFile /home/elitedvs/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/elitedvs/public_html/_vti_pvt/service.grp
AddHandler application/x-httpd-php .html
I was meaning that you have 2 htaccess files. The htaccess file you posted plus the following in the directory that has your php files which you don't want people to access (only access through mod_rewrite):
order deny,allow
deny from all
So consider this for an idea. Place your entire website in a foder called /z/ then in the directory /z/ place a htaccess file with the following code:
order deny,allow
deny from all
Just remember the directory name is the letter z lower case
Then in the root directory which is the folder/directory above website place the following .htaccess file which is the same spot you mentioned your previous htaccess file
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName elitedvservices.com
AuthUserFile /home/elitedvs/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/elitedvs/public_html/_vti_pvt/service.grp
RewriteEngine on
/?([^z][^/].*\.html)$ /z/$1.php
/?([^z][^/].*\.[^p][^h][^p])$ /z/$1
That is from the top of my head but you get the point.
cwarn23
Occupation: Genius
3,033 posts since Sep 2007
Reputation Points: 413
Solved Threads: 259
So is this solved and I think when you refered to the MG2 folder shouldn't the name of it be just the letter z to match the htaccess files. Then it should be working.
cwarn23
Occupation: Genius
3,033 posts since Sep 2007
Reputation Points: 413
Solved Threads: 259