Extend depth of .htaccess to all subfolders and their children

Posted by JoXll on Pro Webmasters See other posts from Pro Webmasters or by JoXll
Published on 2011-11-03T23:33:32Z Indexed on 2013/10/28 22:14 UTC
Read the original article Hit count: 298

Filed under:
|
|

I need to be able to use .htaccess in all subfolders for full depth. E.g. I have .htaccess in public_html folder:

\public_html\.htaccess

How I make it to work for the folder small as well?

\public_html\home\images\red\thumbs\small\

It only enforces up to home directory not more.

ErrorDocument 403 http://google.com
Order Deny,Allow
Deny from all
Allow from 11.22.33.44



Options +FollowSymlinks
RewriteEngine On

RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

© Pro Webmasters or respective owner

Related posts about php

Related posts about apache