Rich Bitch Posted June 23, 2008 Report 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?
Klez Posted June 23, 2008 Report Posted June 23, 2008 varbuut serveris htaccess nenjem veeraa? kas ir apache log failaa ?
Rich Bitch Posted June 23, 2008 Author Report 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
Val Posted June 23, 2008 Report Posted June 23, 2008 (edited) ieliec kautkur index.php: print_r($_GET); Edited June 23, 2008 by Val
Klez Posted June 23, 2008 Report Posted June 23, 2008 liiiks mod rewrait ieksh htaccess .. http://www.google.lv/search?q=mod+rewrite+...lient=firefox-a
Kverkagambo Posted June 26, 2008 Report 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
andrisp Posted June 26, 2008 Report Posted June 26, 2008 Norādi absolūtu linku uz citiem failiem, piemeeram, /stils.css vai http://example.com/stils.css
Paulinjsh Posted June 26, 2008 Report 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.
Klez Posted June 27, 2008 Report 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
Kverkagambo Posted June 27, 2008 Report 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ā.
Kverkagambo Posted June 27, 2008 Report 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ā.
Recommended Posts