#1  
Old 28th March 2012, 18:13
calocen calocen is offline
Junior Member
 
Join Date: May 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to calocen
Default .htaccess error

I use this .htaccess to protect my WP installation, but after deactivating "folder protection", the whole .htaccess disappears, not only protection lines.

Quote:
AuthType Basic
AuthName "Members Only"
AuthUserFile /var/www/clients/client1/web1/web/.htpasswd
require valid-user

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress
Reply With Quote
Sponsored Links
  #2  
Old 28th March 2012, 18:57
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,986
Thanks: 840
Thanked 5,647 Times in 4,457 Posts
 
Default

Yes, thats correct. If you add other lines to the .htaccesss file created by the folder protection feature, they will get removed when you delete the foilder protection. So if you want to use a custom.htaccess file, then its better to add the .htaccess lines for authentification manually.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Tags
bug, htaccess

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CP210x USB to UART Bridge Linux VCP Drivers(SILICON Labs) perfectpol7 Kernel Questions 13 9th November 2010 08:30
Failed during pvmove, howto: set up software raid 1 on running LVM system sbh77 HOWTO-Related Questions 2 8th October 2010 01:11
setting-up-truecrypt-5.1a-on-debian-etch-gnome wiseman HOWTO-Related Questions 0 4th November 2009 01:18
mod_layout and php gd branov Installation/Configuration 8 2nd September 2009 16:51
Fresh Install on Debian cksrealm Installation/Configuration 12 22nd February 2006 17:14


All times are GMT +2. The time now is 07:59.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.