ecommerce website design Shropshire, Custom & Ecommerce Website Designers, Web Page Design Company Shropshire UK Site Map
Phone:01743 272 609 Fax: 0709 286 1166
Home page, website design service at Shrewsbury, Shropshire. We supply website design service to business in Shropshire and whole UKAbout spark computing, website design service at Shrewsbury, Shropshire. We supply website design service to business in Shropshire and whole UKExpertise and services from spark computing, website design service at Shrewsbury, Shropshire. We supply website design service to business in Shropshire and whole UKOffice automatic solutions, online business solutions supplied by Spark computing, shrewsbury, shropshirecontact spark computing, shrewsbury, shroshire to discuss online business websites, custom software development

Archives for: August 2010, 23

23/08/10

Permalink 04:22:05 pm, Categories: General IT articles  

.htaccess to exclude password protected sub folder

In Wordpress installation, the default .htaccess is

Code:

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

Basically it says if there is a file name or folder name of such, the rewrite rule will ignore it.
However, if you have a sub folder, for example, called subfolder, with another .htaccess within it to password protected that folder, the rewritecond will simply just not work.

Some people say you can put

Code:

RewriteEngine Off

in the .htaccess file within the subfolder. However, the .htaccess file of subfolder will not processed until the one of root folder is processed. That means it will never work.

Some suggests using IP address to protect the folder rather than password. This can only work to an extent if customer got a static IP on their ADSL router.

We found another way definitely work by using sub-domain name. If you setup your server to point the sub-domain directly to that folder, that folder will become root under the sub domain and the .htaccess will not be processed.


Tweet this! Facebook Live Yahoo bookmark Digg US google bookmark

August 2010
Mon Tue Wed Thu Fri Sat Sun
 << < Current> >>
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          

Spark Website Design, Shropshire

Technical articles on IT solutions.

Free information on office and home IT solutions; How to get a website running for your business; self-help e-commerce; and tips on website design.

Search

Misc

XML Feeds

What is this?