Rich Bitch Posted June 23, 2008 Report Share Posted June 23, 2008 Vispirms jau Prieciigus Liigo un Jaanjus Taatad, man ir .htaccess failaa shaadas rindas: Options +FollowSymLinks RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)/ index.php?id=$1 [QSA,L] Ejot uz adrese www.mana_lapa.lv/jaunumi met aaraa kljuudas pazinojumu, ka lapa jaunumi nav atrasta Not Found The requested URL /jaunumi was not found on this server. kur vareetu buut kljuuda? Link to comment Share on other sites More sharing options...
Klez Posted June 23, 2008 Report Share Posted June 23, 2008 varbuut serveris htaccess nenjem veeraa? kas ir apache log failaa ? Link to comment Share on other sites More sharing options...
Rich Bitch Posted June 23, 2008 Author Report Share Posted June 23, 2008 (edited) .htaccess darbojas, jo kad ierakstiiju tikai Options -Indexes, tad darbojaas. Apache error.log raada "File does not exist: D:/WWW/mana_lapa/jaunumi" Edited June 23, 2008 by Rich Bitch Link to comment Share on other sites More sharing options...
Val Posted June 23, 2008 Report Share Posted June 23, 2008 (edited) ieliec kautkur index.php: print_r($_GET); Edited June 23, 2008 by Val Link to comment Share on other sites More sharing options...
Rich Bitch Posted June 23, 2008 Author Report Share Posted June 23, 2008 print_r($_GET); kur? Link to comment Share on other sites More sharing options...
Klez Posted June 23, 2008 Report Share Posted June 23, 2008 liiiks mod rewrait ieksh htaccess .. http://www.google.lv/search?q=mod+rewrite+...lient=firefox-a Link to comment Share on other sites More sharing options...
Kverkagambo Posted June 26, 2008 Report Share Posted June 26, 2008 Man arī jautājums: kā rīkoties ar relatīvajām adresēm uz css, js, attēlu failiem? Piemēram, izsaucot http://localhost/piemers/aaa/bbb/ links uz css failu kļūst http://localhost/piemers/aaa/bbb/stils.css nevis http://localhost/piemers/stils.css Link to comment Share on other sites More sharing options...
andrisp Posted June 26, 2008 Report Share Posted June 26, 2008 Norādi absolūtu linku uz citiem failiem, piemeeram, /stils.css vai http://example.com/stils.css Link to comment Share on other sites More sharing options...
Paulinjsh Posted June 26, 2008 Report Share Posted June 26, 2008 vai arī glabā visu piemēram mapē css un norādi .htaccess failā sekojošu rindu: RewriteRule ^.*/css/(.*).css$ css/$1.css [L] bet iesaku andrisp variantu ar absolūtajiem ceļiem - vismaz css nokešosies un katrā lapā nevērs pa jaunam. Link to comment Share on other sites More sharing options...
Klez Posted June 27, 2008 Report Share Posted June 27, 2008 (edited) varbūt vajag mod rewrite pateikt lai css un bildes nenjem veeraa ? RewriteRule \.(css|jpe?g|gif|png)$ - [L] Edited June 27, 2008 by Klez Link to comment Share on other sites More sharing options...
Kverkagambo Posted June 27, 2008 Report Share Posted June 27, 2008 varbūt vajag mod rewrite pateikt lai css un bildes nenjem veeraa ?RewriteRule \.(css|jpg|gif|png)$ - [L] Šis variants vispār nestrādā. Link to comment Share on other sites More sharing options...
Klez Posted June 27, 2008 Report Share Posted June 27, 2008 kā tas ir nestrādā ? Link to comment Share on other sites More sharing options...
Kverkagambo Posted June 27, 2008 Report Share Posted June 27, 2008 kā tas ir nestrādā ? Pazuda noformējums un attēli pat sākumlapā, kur iepriekš viss bija kārtībā. Link to comment Share on other sites More sharing options...
Klez Posted June 27, 2008 Report Share Posted June 27, 2008 izmanto absolūtos ceļus! Link to comment Share on other sites More sharing options...
Kverkagambo Posted June 27, 2008 Report Share Posted June 27, 2008 Nekas cits jau neatliek! Link to comment Share on other sites More sharing options...
Recommended Posts