EdgarsK Posted February 19, 2010 Report Share Posted February 19, 2010 Sveiki, lieta sekojoša http://localhost/index.php <link href="/css/style.css" rel="stylesheet" type="text/css" /> ir mape /css ir fails /css/style.css Stils netiek ieladets, atverot caur brovseri to failu vispar tuksums, neka nav. tas pats arii ar /img failu, nesaprotu, 100% ka htaccess pie vainas, jo novacot to viss ir kartiba Options +FollowSymLinks RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^!([*])$ index.html [L,QSA] RewriteRule ^(.*)$ index.php?path=$1 [L,QSA] Quote Link to comment Share on other sites More sharing options...
endrju Posted February 19, 2010 Report Share Posted February 19, 2010 Stils netiek ieladets, atverot caur brovseri to failu vispar tuksums, neka nav. tas pats arii ar /img failu, nesaprotu, 100% ka htaccess pie vainas, jo novacot to viss ir kartiba Tāpēc, ka Tev ir nepareizs .htaccess. Katram RewriteRule vajag savus RewriteCond. Pamēģini tā: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^!([*])$ index.html [L,QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?path=$1 [L,QSA] Quote Link to comment Share on other sites More sharing options...
2easy Posted February 19, 2010 Report Share Posted February 19, 2010 (edited) pietiek ja sākumā ieliek šo RewriteCond %{REQUEST_FILENAME} -d [OR] RewriteCond %{REQUEST_FILENAME} -f RewriteRule .* - [L] tālāk cik rules vien vajag ;) un jā visi RewriteCond attiecas tikai uz tuvāko rule (EdgarsA rtfm? :D) Edited February 19, 2010 by 2easy 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.