Autor Zpráva
aaautohr
Profil *
Ahoj

nevíte proč mi na localhostu v pohodě funguje

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1 [QSA,L]

a na žádném hostingu (wz, php5, neomezeny-hosting) ne?
Fergi
Profil
no jak na kterym... na wz by to fungovat melo ale treba na ic ne.... kdyztak si vzdycky prectete co ty servery nabizi a v pokud vse funguje na localu tak pravdepodobne mate webhosting ktery toto nepodporuje.....
Str4wberry
Profil
Aaautohre, definujte prosím to „nefunguje“.
Taps
Profil
aaautohr
v a v jakém tvaru máš odkazy. na wz by to mělo jít v pohodě ten .htaccess podporuje
aaautohr
Profil *
php5 i neomezeny-hosting taky podporuje rewrite.
Hlasi to Interlal server error kdyz vlezu na uvodni stranku
odkazy tvaru www.neco.cz/odkaz/
Davex
Profil
aaautohr
V RewriteRule není definována cesta k souboru na který se má přepisovat, takže zadej cestu k index.php s lomítkem na začátku nebo použij direktivu RewriteBase.
aaautohr
Profil *
Davex:
muzes prosimte ukazat jaK?
RewriteRule ^(.*)$ www.neco.cz/index.php?$1 [QSA,L] nefugnuje
stejne tak jako
RewriteBase ^(.*)$ index.php?$1 [QSA,L]
aaatohr
Profil *
poradi nekdo?
kletely
Profil
aaatohr
Nastav si RewriteBase na
RewriteBase /
aaautohr
Profil *
Ani

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1 [QSA,L]

nefunguje :-(
Davex
Profil
Toto fungovat musí. Jakou hlásí chybu? Nemáš tu stránku nakešovanou? Zkus Ctrl+F5.
aaautohr
Profil *
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, site40667@php5.cz and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


tento problem jsem mel uz i na jinem hostingu, kde s tim admini neco udelali ale bohuzel nevim co
Davex
Profil
V .htaccess by ještě mohlo pomoci nastavení
Options FollowSymLinks
aaautohr
Profil *
No taky to nepomohlo.
kletely
Profil
aaautohr
Tak potom ani aj neviem. Nemáš náhodou chybu niekde inde?
PS: Prečítaj si to to: http://mike.webzdarma.cz/mod_rewrite-a-hezke-url/ tam to určite funguje

Vaše odpověď

Mohlo by se hodit


Prosím používejte diakritiku a interpunkci.

Ochrana proti spamu. Napište prosím číslo dvě-sta čtyřicet-sedm:

0