php newbie Posted March 11, 2010 Report Share Posted March 11, 2010 ir šāds .htacces SetEnv APPLICATION_ENV development RewriteEngine On RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ index.php [NC,L] vajadzētu lai tie ruli neaiztiktu /admin/ folderi. Man nesanāk. Mēģināju visādus variantus, bet nekā Quote Link to comment Share on other sites More sharing options...
2easy Posted March 11, 2010 Report Share Posted March 11, 2010 RewriteRule ^admin/ - [L] Quote Link to comment Share on other sites More sharing options...
Mr.Key Posted March 11, 2010 Report Share Posted March 11, 2010 Tā nu gluži nebūs viss. Es izlīdzējos ar šādu: RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteCond %{REQUEST_URI} !^/admin/.* RewriteRule ^.*$ /index.php [NC,L] Bet var arī tā, nemēģināju..: RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d [OR] RewriteCond %{REQUEST_URI} ^/admin/.* RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ /index.php [NC,L] p.s. veiksmi ZF apguvē ;) Quote Link to comment Share on other sites More sharing options...
2easy Posted March 11, 2010 Report Share Posted March 11, 2010 vajadzētu lai tie ruli neaiztiktu /admin/ folderi RewriteRule ^admin/ - [L] Tā nu gluži nebūs viss wtf??? Quote Link to comment Share on other sites More sharing options...
Mr.Key Posted March 11, 2010 Report Share Posted March 11, 2010 (edited) Nu, jāieliek starp pirmo un otro ruli ;) :D Edited March 11, 2010 by Mr.Key Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.