leisure Posted April 25, 2006 Report Share Posted April 25, 2006 newaru saprast kur esmu ielaidis kluudu :( .htaccess saturs: RewriteEngine on RewriteRule ^players/([0-9]*).html players.php?playerID=$1 [L,NC] Neiet!!!, bet viss saak straadaat tikai tad, kad esmu reaali izveidojis mapi players! bet taa tachu tam newajadzeetu buut??? Link to comment Share on other sites More sharing options...
Delfins Posted April 25, 2006 Report Share Posted April 25, 2006 RewriteCond pieraksti klāt... Link to comment Share on other sites More sharing options...
leisure Posted April 25, 2006 Author Report Share Posted April 25, 2006 pieliku... RewriteCond %{REQUEST_FILENAME} !-f bet vienalga neiet :( Link to comment Share on other sites More sharing options...
Robis Posted April 25, 2006 Report Share Posted April 25, 2006 (edited) Options FollowSymLinks RewriteEngine on RewriteCond !\.(css|js|jpg|gif|jpeg|avi|mp3) / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^.htaccess$ - [F] RewriteRule ^players/([0-9]*).html players.php?playerID=$1 [L,NC] Ja neiet, varbūt pēdējo rindiņu mēģini pārrakstīt? RewriteRule ^players/([0-9]*).html players.php?playerID=$1 [QSA,L] nez... es šitādām lietām nemēdzu pārāk daudz laika tērēt ;) Edited April 25, 2006 by Robis Link to comment Share on other sites More sharing options...
Delfins Posted April 25, 2006 Report Share Posted April 25, 2006 RewriteCond !\.(css|js|jpg|gif|jpeg|avi|mp3) / --- Lieks RewriteRule ^.htaccess$ - [F] --- lieks plus tas ^ liekas nav vajadzīgs... Link to comment Share on other sites More sharing options...
leisure Posted April 25, 2006 Author Report Share Posted April 25, 2006 nez... kaa pieliku klaat Options FollowSymLinks taa man Uzreiz 500 erroru met aaraa! (Internal Server Error) Link to comment Share on other sites More sharing options...
Robis Posted April 25, 2006 Report Share Posted April 25, 2006 Varbūt tad labāk: #Options FollowSymLinks Link to comment Share on other sites More sharing options...
leisure Posted April 25, 2006 Author Report Share Posted April 25, 2006 njaa to jaw izdariiju :) bet nu vai tas vispaar maina lietas buutiibu ka es taga to sawu lapeli testeeju uz localhost... bet peec tam likshu uz servera? Link to comment Share on other sites More sharing options...
Robis Posted April 25, 2006 Report Share Posted April 25, 2006 mod_rewrite modulis ir, citi saiti uz localhost iet (tādi, kam ir url rewrite)? Link to comment Share on other sites More sharing options...
leisure Posted April 25, 2006 Author Report Share Posted April 25, 2006 buutiibaa shitaa ir pirmaa reiza kad vinju izmantoju!!! takaa pat pilniibaa iespeejams ka esu aizmirsis kk svariigu.. bet nu newaru neko taadu atrast! (citaaas lapaas naw mod_rewrite! ) kk zem paste nav kaac iis piemeerinsh lai wareetu paarbaudiit wai iet man ??? Link to comment Share on other sites More sharing options...
Robis Posted April 25, 2006 Report Share Posted April 25, 2006 Man uz localhost, šķiet šitāds iet: Options FollowSymLinks IncludesNoExec ExecCGI RewriteEngine on RewriteCond !\.(css|js|jpg|gif|jpeg|avi|mp3) / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^.htaccess$ - [F] RewriteRule ^(.*)$ index.php [QSA,L] Link to comment Share on other sites More sharing options...
leisure Posted April 25, 2006 Author Report Share Posted April 25, 2006 akal shitaa te rindinja gaazh vissu aaraa!!! Options FollowSymLinks IncludesNoExec ExecCGI Link to comment Share on other sites More sharing options...
Robis Posted April 25, 2006 Report Share Posted April 25, 2006 Tad Tev iespējams mod_rewrite modulis nav iekš apache enablots... Pārbaudi... Link to comment Share on other sites More sharing options...
leisure Posted April 25, 2006 Author Report Share Posted April 25, 2006 ja zem conf: tad shis te ir atkomenteec: LoadModule rewrite_module modules/mod_rewrite.so <<< tas ir iistais ja? Link to comment Share on other sites More sharing options...
Kristabs Posted April 26, 2006 Report Share Posted April 26, 2006 <?php phpinfo(); ?> Cntrl+F -> Loaded modules. Un tur skaties vai ir ielaadeets mod_rewrite. Link to comment Share on other sites More sharing options...
Recommended Posts