ziedinjsh Posted March 20, 2013 Report Share Posted March 20, 2013 (edited) Divaini, bet ir tāda lieta.. šādi man izskatās tas viss: Options +FollowSymLinks RewriteEngine on RewriteRule ^product/([0-9])$ /view.php?w=product&id=$1 RewriteRule ^theme/([0-9])$ /view.php?w=theme&id=$1 RewriteRule ^interesting/([0-9])$ /view.php?w=i&id=$1 RewriteRule ^music/([0-9])$ /view.php?w=music&id=$1 RewriteRule ^music /music.php RewriteRule ^interesting /interesting.php it kā viss strādā, bet tagad pievienojot jaunus datus.. kuram vajadzētu strādāt šādi: product/13 un product/14 parāda 404 Not Found The resource requested could not be found on this server bet kas ir vecāki ieraksti tie strādā šādā vaidā! Un ja iet šādi view.php?w=product&id=13 tad ar strādā Kas tur pa vainu? Edited March 20, 2013 by ziedinjsh Quote Link to comment Share on other sites More sharing options...
Kemito Posted March 20, 2013 Report Share Posted March 20, 2013 (edited) Šāda veida tēma ir aprunāta manuprāt "dahuja" reizes, tā vietā, lai rakstītu teju gandrīz vienu un to pašu, tu varētu pameklēt forumā atbildes. Gandrīz 700 ieraksti forumā, bet neesi tā lāga neko iemācijies? Lūk jau būtu labs sākums, kaut kādiem pavedieniem: http://php.lv/f/topic/20074-htaccess/?hl=%2Bmod+%2Brewrite#entry156402 Edited March 20, 2013 by Kemito Quote Link to comment Share on other sites More sharing options...
xPtv45z Posted March 20, 2013 Report Share Posted March 20, 2013 Tev rules norāda, ka skaitlim aiz slash jābūt tikai no 0 līdz 9, jeb viencipara skaitlis. Quote Link to comment Share on other sites More sharing options...
draugz Posted March 20, 2013 Report Share Posted March 20, 2013 Tava kļūda ir šeit ([0-9]), vajag ([0-9]+) Quote Link to comment Share on other sites More sharing options...
ziedinjsh Posted March 20, 2013 Author Report Share Posted March 20, 2013 Paldies :) 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.