Jackal Posted January 12, 2011 Report Share Posted January 12, 2011 (edited) .htaccess RewriteEngine on RewriteBase /cms/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !.*\.(ico|txt|css|jpg|jpeg|png|gif|zip|js|pdf|swf)$ RewriteRule ^(.*)$ index.php?$1 [L,QSA] Problēma tāda, ka ejot iekš adreses http://localhost/cms/admin atver http://localhost/cms/admin/?admin. Ja ver vaļā http://localhost/cms/admin/ (ar slašu beigās), tad viss ir kārtībā. Mape admin eksistē un ar citiem linkiem nav problēmu (verot vaļā http://localhost/cms/admin/test viss ir pareizi). Kā šo problēmu novērst? Edited January 12, 2011 by Jackal Quote Link to comment Share on other sites More sharing options...
marcis Posted January 12, 2011 Report Share Posted January 12, 2011 http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewritecond '-d' (is directory)Treats the TestString as a pathname and tests whether or not it exists, and is a directory. '-f' (is regular file) Treats the TestString as a pathname and tests whether or not it exists, and is a regular file. Quote Link to comment Share on other sites More sharing options...
Jackal Posted January 12, 2011 Author Report Share Posted January 12, 2011 Man nevajag, lai admin tiktu ņemta kā direktorija. Vajag, lai rewraito jebkurā gadijumā (eksistē vai neeksistē tā direktorija) 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.