Nafunkci htaccess, hazi 500 error

9 příspěvků

Archiv diskusního fóra

Fórum je uzavřené a slouží pouze ke čtení. Některé informace mohou být zastaralé.

  1. Proč mi tu na Wz nefunguje htacces: RewriteRule ^(.*)$ ./index.php?url=$1 [L,QSA] Normálně na localu funguje :(
  2. <HTML>a co jen /index.php bez te tecky</HTML>
  3. to nepomuze... ani bez tecky ani bez lomitka...
  4. Mas predtim jeste RewriteEngine on
  5. jasně
  6. <HTML>problem bude mezi zidli a klavesnici</HTML>
  7. hmm proc myslite? RewriteEngine on RewriteRule ^(.*)$ ./index.php?url=$1 [L,QSA] RewriteRule ^(.*)$ /index.php?url=$1 [L,QSA] RewriteRule ^(.*)$ index.php?url=$1 [L,QSA] RewriteRule .* index.php?url=$0 [L,QSA] ani jedno z techto reseni na wz nefunguje (na localu mi jedou) -> vyhodi chybovku (kdyz odstranim htaccess jede jak ma..) mezi ci zidli a ci klavesnici bude tesy chyba?
  8. No musím se přiznat, že mně RewriteEngine On RewriteRule ^(.*)$ /index.php?page=$1 [L,QSA] taky hodí chybu. Funguje mi ale např. RewriteRule ^(.*)/$ /index.php?page=$1 [L,QSA] tj. že odkaz končí lomítkem.
  9. Ok, trochu jsem bádala a tohle už mi funguje: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /index.php?page=$1 [L,QSA] t.j. nejprve se ověří, jestli cesta neexistuje.

← Zpět na všechna témata