Wuu Posted April 12, 2009 Report Share Posted April 12, 2009 RewriteRule ^users/(*+)?$ index.php?page=users&search=$1 [L] Vajag lai darbotos tā ka ja atveras links http://xxx.lv/users/JEBKAS tad nostrādā index.php?page=users&search=$JEBKAS Nekādi neizprotu to kodu Quote Link to comment Share on other sites More sharing options...
gaziks52 Posted April 12, 2009 Report Share Posted April 12, 2009 (edited) RewriteEngine on RewriteRule ^users/([^/\.]+)/?$ index.php?page=users&search=$1 [L] ^users/ - ja pieprasījums sākas ar users tad izpildīs to rūli je ne tad nē ([^/\.]+) - šis atļauj vienu vai vairākus simbolus kas nav sleš vai punkts /?$ - nodrošina to ka pēc tam drīkst sekot tikai sleš un nekas cits index.php?page=users&search=$1 - $1 tiks aizstāts ar iepriekš iegūto rezultātu [L] - pasaka serverim lai neturpina izpildīt citus rūļus ja šis ir bijis veiksmīgs shitaa vajadzeetu darboties.... Edited April 12, 2009 by gaziks52 Quote Link to comment Share on other sites More sharing options...
Wuu Posted April 13, 2009 Author Report Share Posted April 13, 2009 Paldies strādā lieliski! 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.