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?
nefunkční .htacces?
- CZechBoY
- Master Level 9.5
- Příspěvky: 8813
- Registrován: srpen 08
- Bydliště: Brno
- Pohlaví:
- Stav:
Offline
- Kontakt:
Re: nefunkční .htacces?
soubor htaccess je nahraný na ftp, ale tady ne
jaký je obsah?
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
IntelliJ Idea, Docker, Opera browser, Linux Mint
iPhone XS
Raspberry PI 3 (KODI, Raspbian)
XBox One S, PS 4, nVidia GeForce NOW
Re: nefunkční .htacces?
# 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]
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]
- CZechBoY
- Master Level 9.5
- Příspěvky: 8813
- Registrován: srpen 08
- Bydliště: Brno
- Pohlaví:
- Stav:
Offline
- Kontakt:
Re: nefunkční .htacces?
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
IntelliJ Idea, Docker, Opera browser, Linux Mint
iPhone XS
Raspberry PI 3 (KODI, Raspbian)
XBox One S, PS 4, nVidia GeForce NOW
Re: nefunkční .htacces?
takže s toho plyne, že je problém v .htaccess ? Chápu dobře?
- CZechBoY
- Master Level 9.5
- Příspěvky: 8813
- Registrován: srpen 08
- Bydliště: Brno
- Pohlaví:
- Stav:
Offline
- Kontakt:
Re: nefunkční .htacces?
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
IntelliJ Idea, Docker, Opera browser, Linux Mint
iPhone XS
Raspberry PI 3 (KODI, Raspbian)
XBox One S, PS 4, nVidia GeForce NOW
Re: nefunkční .htacces?
nedokázal by jsi to napravit? samozřejmě můžeme se bavit i o peněžní stránce, jelikož jsme už zoufalí
- CZechBoY
- Master Level 9.5
- Příspěvky: 8813
- Registrován: srpen 08
- Bydliště: Brno
- Pohlaví:
- Stav:
Offline
- Kontakt:
Re: nefunkční .htacces?
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:
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)
.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
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
-
- 4
- 3392
-
od Dolpi
Zobrazit poslední příspěvek
01 zář 2024 22:17
-
- 8
- 5427
-
od Baggy
Zobrazit poslední příspěvek
29 zář 2024 22:11
-
- 10
- 28582
-
od mmmartin
Zobrazit poslední příspěvek
22 led 2025 21:47
-
- 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 5 hostů