dAivEd Posted July 3, 2009 Report Share Posted July 3, 2009 Labdien! Kads var palidzet ar RewriteRule ? Man vajag lai no ?pg=news&news_id=40 sanaak /pg/news/news_id/40 Rakstu shitadi RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ([A-Za-z0-9\-_\.]+$) /index.php?$1=$2&$3=$4 Iisti nezinu, taisu pec visadiem manualiem, bet nesanak. Quote Link to comment Share on other sites More sharing options...
Klez Posted July 3, 2009 Report Share Posted July 3, 2009 RewriteRule ([A-Za-z0-9\-_\.]+$) /index.php?$1=$2&$3=$4 tas viss: "([A-Za-z0-9\-_\.]+$)" ir viens mainīgais $1 aptuveni tā: RewriteRule kontakti/([0-9])$ /pub/index.php?page=3&sid=$1 RewriteRule (a-z)/([0-9])$ /pub/index.php?page=$1&sid=$2 Quote Link to comment Share on other sites More sharing options...
dAivEd Posted July 3, 2009 Author Report Share Posted July 3, 2009 RewriteRule ([A-Za-z0-9\-_\.]+$) /index.php?$1=$2&$3=$4 tas viss: "([A-Za-z0-9\-_\.]+$)" ir viens mainīgais $1 aptuveni tā: RewriteRule kontakti/([0-9])$ /pub/index.php?page=3&sid=$1 RewriteRule (a-z)/([0-9])$ /pub/index.php?page=$1&sid=$2 Mhm liels paldies ! Viss iet ! Tikai tagad reali visas bildes pazuda utt.. Cik lasiju itka to var izlabot uzrakstot: RewriteBase / Bet man nesanak ;( Vienalga bildes nerada jo viniem images/ut.. bet ja uzliek /images/ut.. tad viss ok, bet visas bildes mainit baiga pisshana :/ Quote Link to comment Share on other sites More sharing options...
marcis Posted July 3, 2009 Report Share Posted July 3, 2009 Tak pirmīt biji uzrakstījis noteikumu, kas paredz rewrite pārtraukšanu, ja pieprasītais fails vai mape eksistē RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f Quote Link to comment Share on other sites More sharing options...
dAivEd Posted July 3, 2009 Author Report Share Posted July 3, 2009 Tak pirmīt biji uzrakstījis noteikumu, kas paredz rewrite pārtraukšanu, ja pieprasītais fails vai mape eksistē RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f Nu ja ! Tagad sanaca man shitadi Options +FollowSymlinks RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^news/id/([^/]+)/?$ /index.php?page=news&id=$1 [L,QSA] Bet vienalga bildes neraada ! 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.