Yii Framework Forum: default htaccess and password protected subdirectories - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

default htaccess and password protected subdirectories

#1 User is offline   Giovanni D. 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 238
  • Joined: 23-December 08
  • Location:London (UK)

Posted 15 August 2011 - 02:59 PM

Hello,
it took me some time to solve this so I want to share it with you:

if you are using the "default" yii htaccess in order to have the urlManager working, you may notice some problems in accessing password-protected subfolders that uses .htaccess too

so here is the solution:
http://www.andrewrol...ed-directories/

In few words, just add the line

ErrorDocument 401 default


to you main .htaccess.. but check the link to see the full explaination ;)

bye,
Giovanni.
- Yii Playground: collaborative demo app with small examples to play with.. join us ;) [Fork on github]

- DeploYii: Yii powered task runner and deployment solution

- Social: LinkedIn ยท Twitter
0

#2 User is offline   Yair 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 10
  • Joined: 22-July 14

Posted 28 April 2016 - 12:44 AM

Thank you. You're a life saver.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users