Jump to content
php.lv forumi

.htaccess


php newbie

Recommended Posts

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ā

Link to comment
Share on other sites

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ē ;)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...