For 2.x it should be: RewriteRule ^(.*)$ index.php [QSA,L]
On Fri, Mar 15, 2013 at 2:55 AM, Salim Kabeer <salimkab...@gmail.com> wrote: > here is right code for .htaccess > > > RewriteEngine On > > RewriteCond %{REQUEST_FILENAME} !-d > RewriteCond %{REQUEST_FILENAME} !-f > RewriteCond %{REQUEST_FILENAME} !-l > > RewriteRule ^(.+)$ index.php?url=$1 [QSA,L] > > > > > On Thursday, March 14, 2013 3:44:07 AM UTC+5:30, cyboman wrote: >> >> Hello all, >> >> I've been trying to find a way to easily password protect the entire site. >> This will allow me to troubleshoot the site while unauthenticated users >> cannot have access. >> >> I've tried editing the htaccess file in the webroot, but while it does >> bring up the authentication after entering the credentials it gives a >> "internal server error". I feel like the auth code in htaccess is >> interfering with how cakephp wants htaccess to work. >> >> Here is my htaccess: >> >> AuthName "Restricted Area" >> AuthType Basic >> AuthUserFile /app/.htpasswd >> AuthGroupFile /dev/null >> require valid-user >> >> <IfModule mod_rewrite.c> >> RewriteEngine On >> RewriteCond %{REQUEST_FILENAME} !-d >> RewriteCond %{REQUEST_FILENAME} !-f >> RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] >> </IfModule> >> >> Any help much appreciated. >> >> -Cybo > > -- > Like Us on FaceBook https://www.facebook.com/CakePHP > Find us on Twitter http://twitter.com/CakePHP > > --- > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to cake-php+unsubscr...@googlegroups.com. > To post to this group, send email to cake-php@googlegroups.com. > Visit this group at http://groups.google.com/group/cake-php?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.