nefunkční .htacces?

Místo pro dotazy a rady ohledně programovacích jazyků (C++, C#, PHP, ASP, Javascript, VBS..) a tvorby webových stránek

Moderátor: Mods_senior

clr.
Level 1
Level 1
Příspěvky: 76
Registrován: srpen 10
Pohlaví: Muž
Stav:
Offline

nefunkční .htacces?

Příspěvekod clr. » 13 lis 2012 15:32

Dobrý den,

Kódujeme stránku pro multigaming (viz. http://ipteam-novy.illusion-pictures.cz/index2.php ), ale momentálně jsme se zadrhli u chybného hlášení při kliknutí na přihlášení, registrace či zapomenuté heslo. Soubor .htaccess je na ftp nahraný a mod_rewrite plně funguje .. nevěděl by někdo co s tím může být?

Reklama
Uživatelský avatar
CZechBoY
Master Level 9.5
Master Level 9.5
Příspěvky: 8813
Registrován: srpen 08
Bydliště: Brno
Pohlaví: Muž
Stav:
Offline
Kontakt:

Re: nefunkční .htacces?

Příspěvekod CZechBoY » 13 lis 2012 15:37

soubor htaccess je nahraný na ftp, ale tady ne
jaký je obsah?
PHP, Nette, MySQL, C#, TypeScript, Python
IntelliJ Idea, Docker, Opera browser, Linux Mint
iPhone XS
Raspberry PI 3 (KODI, Raspbian)
XBox One S, PS 4, nVidia GeForce NOW

clr.
Level 1
Level 1
Příspěvky: 76
Registrován: srpen 10
Pohlaví: Muž
Stav:
Offline

Re: nefunkční .htacces?

Příspěvekod clr. » 13 lis 2012 15:44

# Komprese
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip
#Header append Vary User-Agent
# DeflateCompressionLevel 9
# DeflateFilterNote Input instream
# DeflateFilterNote Output outstream
# DeflateFilterNote Ratio ratio

RewriteEngine on

RewriteCond %{HTTP_HOST} ^ipteam.cz
RewriteRule (.*) http://www.ipteam.cz/$1 [R=301,QSA,L]


RewriteRule ^sitemap.xml$ /sitemap.php [L,QSA]
RewriteRule ^news/archive$ /news [R=301,QSA,L]
RewriteRule ^matches/archive$ /matches [R=301,QSA,L]
RewriteRule ^movies/archive$ /movies [R=301,QSA,L]

RedirectMatch clanek/([A-Za-z0-9_-]+)?/?$ /news/$1.html [R=301,QSA,L]

RewriteRule ^([A-Za-z0-9-_]+)$ /index.php?marek_sloser=$1 [L,QSA]
RewriteRule ^([A-Za-z0-9-_]+)?.html?$ /index.php?marek_sloser=$1 [L,QSA]

RewriteRule ^news/([A-Za-z0-9-_.]+).html$ /index.php?marek_sloser=news&seo_link=$1 [L,QSA]
RewriteRule ^news/comments/([A-Za-z0-9-_.]+).html$ /index.php?marek_sloser=news&comments=$1 [L,QSA]
RewriteRule ^news/page-([0-9]+)$ /index.php?marek_sloser=news&page=$1 [L,QSA]

RewriteRule ^awards/([0-9]+).html$ /index.php?marek_sloser=awards&id=$1 [L,QSA]
RewriteRule ^awards/([0-9]+)-([A-Za-z0-9_-]+).html$ /index.php?marek_sloser=awards&id=$1&seo_link=$2 [L,QSA]
RewriteRule ^awards/page-([0-9]+)$ /index.php?marek_sloser=awards&page=$1 [L,QSA]

RewriteRule ^matches/([0-9]+).html$ /index.php?marek_sloser=matches&id=$1 [L,QSA]
RewriteRule ^matches/([0-9]+)-([A-Za-z0-9_-]+).html$ /index.php?marek_sloser=matches&id=$1&opponent=$2 [L,QSA]
RewriteRule ^matches/comments/([A-Za-z0-9-_.]+).html$ /index.php?marek_sloser=matches&comments=$1 [L,QSA]
RewriteRule ^matches/page-([0-9]+)$ /index.php?marek_sloser=matches&page=$1 [L,QSA]

RewriteRule ^user/([0-9]+).html$ /index.php?marek_sloser=user&id=$1 [L,QSA]
RewriteRule ^user/([0-9]+)-([A-Za-z0-9_-]+).html$ /index.php?marek_sloser=user&id=$1&login=$2 [L,QSA]

RewriteRule ^sponsors/link/([0-9]+)$ /index.php?marek_sloser=sponsors&link=$1 [L,QSA]
RewriteRule ^comunity/link/([0-9]+)$ /index.php?marek_sloser=comunity&link=$1 [L,QSA]

RewriteRule ^team/([A-Za-z0-9_-]+)$ /index.php?marek_sloser=team&sekce=$1 [L,QSA]

RewriteRule ^gallery/([0-9]+).html$ /index.php?marek_sloser=gallery&id=$1 [L,QSA]
RewriteRule ^gallery/([0-9]+)-([A-Za-z0-9-_.]+).html$ /index.php?marek_sloser=gallery&id=$1&seo_link=$2 [L,QSA]

RewriteRule ^edit_profil/change_photo.html$ /index.php?marek_sloser=edit_profil&change_photo [L,QSA]

RewriteRule ^pages/([0-9]+).html$ /index.php?marek_sloser=pages&id=$1 [L,QSA]
RewriteRule ^pages/([0-9]+)-([A-Za-z0-9-_]+).html$ /index.php?marek_sloser=pages&id=$1&seo_link=$2 [L,QSA]

RewriteRule ^movies/([0-9]+).html$ /index.php?marek_sloser=movies&id=$1 [L,QSA]
RewriteRule ^movies/([0-9]+)-([A-Za-z0-9-_.]+).html$ /index.php?marek_sloser=movies&id=$1&seo_link=$2 [L,QSA]
RewriteRule ^movies/page-([0-9]+)$ /index.php?marek_sloser=movies&page=$1 [L,QSA]

RewriteRule ^movie/([0-9]+).html$ /index.php?marek_sloser=movie&id=$1 [L,QSA]
RewriteRule ^movie/([0-9]+)-([A-Za-z0-9-_.]+).html$ /index.php?marek_sloser=movie&id=$1&seo_link=$2 [L,QSA]

RewriteRule ^eshop/category/([A-Za-z0-9-_.]+)$ /index.php?marek_sloser=eshop&category=$1 [L,QSA]
RewriteRule ^eshop/category/([A-Za-z0-9-_.]+)/([A-Za-z0-9-_.]+).html$ /index.php?marek_sloser=eshop&category=$1&product=$2 [L,QSA]

RewriteRule ^tv/archive$ /index.php?marek_sloser=tv&archive [L,QSA]
RewriteRule ^tv/archive/page-([0-9]+)$ /index.php?marek_sloser=tv&archive&page=$1 [L,QSA]
RewriteRule ^tv/([0-9]+).html$ /index.php?marek_sloser=tv&id=$1 [L,QSA]
RewriteRule ^tv/([0-9]+)-([A-Za-z0-9-_.]+).html$ /index.php?marek_sloser=tv&id=$1&seo_link=$2 [L,QSA]

Uživatelský avatar
CZechBoY
Master Level 9.5
Master Level 9.5
Příspěvky: 8813
Registrován: srpen 08
Bydliště: Brno
Pohlaví: Muž
Stav:
Offline
Kontakt:

Re: nefunkční .htacces?

Příspěvekod CZechBoY » 13 lis 2012 16:06

to je jednoduchý, adresář prihlasit neexistuje a rewrite pro něj taky není
PHP, Nette, MySQL, C#, TypeScript, Python
IntelliJ Idea, Docker, Opera browser, Linux Mint
iPhone XS
Raspberry PI 3 (KODI, Raspbian)
XBox One S, PS 4, nVidia GeForce NOW

clr.
Level 1
Level 1
Příspěvky: 76
Registrován: srpen 10
Pohlaví: Muž
Stav:
Offline

Re: nefunkční .htacces?

Příspěvekod clr. » 13 lis 2012 16:14

takže s toho plyne, že je problém v .htaccess ? Chápu dobře?

Uživatelský avatar
CZechBoY
Master Level 9.5
Master Level 9.5
Příspěvky: 8813
Registrován: srpen 08
Bydliště: Brno
Pohlaví: Muž
Stav:
Offline
Kontakt:

Re: nefunkční .htacces?

Příspěvekod CZechBoY » 13 lis 2012 16:18

buď ti chybí rewrite v htacces, nebo soubor, nebo složka
PHP, Nette, MySQL, C#, TypeScript, Python
IntelliJ Idea, Docker, Opera browser, Linux Mint
iPhone XS
Raspberry PI 3 (KODI, Raspbian)
XBox One S, PS 4, nVidia GeForce NOW

clr.
Level 1
Level 1
Příspěvky: 76
Registrován: srpen 10
Pohlaví: Muž
Stav:
Offline

Re: nefunkční .htacces?

Příspěvekod clr. » 13 lis 2012 16:50

nedokázal by jsi to napravit? samozřejmě můžeme se bavit i o peněžní stránce, jelikož jsme už zoufalí

Uživatelský avatar
CZechBoY
Master Level 9.5
Master Level 9.5
Příspěvky: 8813
Registrován: srpen 08
Bydliště: Brno
Pohlaví: Muž
Stav:
Offline
Kontakt:

Re: nefunkční .htacces?

Příspěvekod CZechBoY » 13 lis 2012 19:57

vůbec nevím jak to máte řešené, ale co jsem koukal, tak možná dát lomítko k těmhle rewritům:
.htaccess píše:RewriteRule ^([A-Za-z0-9-_]+)$ /index.php?marek_sloser=$1 [L,QSA]
RewriteRule ^([A-Za-z0-9-_]+)?.html?$ /index.php?marek_sloser=$1 [L,QSA]

konkrétně já vždycky zkoušim, co vlastně apache vrací a co mám přesměrovávat (vím že jsem měl právě s těma lomítkama docela problémy při přechodu)
PHP, Nette, MySQL, C#, TypeScript, Python
IntelliJ Idea, Docker, Opera browser, Linux Mint
iPhone XS
Raspberry PI 3 (KODI, Raspbian)
XBox One S, PS 4, nVidia GeForce NOW


  • Mohlo by vás zajímat
    Odpovědi
    Zobrazení
    Poslední příspěvek
  • Nefunkční USB Flash Disk?
    od Dolpi » 01 zář 2024 10:52 » v Problémy s hardwarem
    4
    3392
    od Dolpi Zobrazit poslední příspěvek
    01 zář 2024 22:17
  • i3 8100 nefunkční turboboost
    od Baggy » 05 zář 2024 01:40 » v Problémy s hardwarem
    8
    5427
    od Baggy Zobrazit poslední příspěvek
    29 zář 2024 22:11
  • Nefunkční WiFi na Androidu
    od HxxxV » 26 črc 2024 20:59 » v Administrace sítě
    10
    28582
    od mmmartin Zobrazit poslední příspěvek
    22 led 2025 21:47
  • Nefunkční internet po výpadku proudu
    od Neferivet » 15 zář 2024 23:31 » v Sítě - hardware
    2
    2977
    od Alferi Zobrazit poslední příspěvek
    16 zář 2024 08:53

Zpět na “Programování a tvorba webu”

Kdo je online

Uživatelé prohlížející si toto fórum: Žádní registrovaní uživatelé a 6 hostů