sruupl / batflat

Lightweight, fast and easy CMS for free. Bootstrap ready. https://batflat.org
MIT License
134 stars 54 forks source link

https://batflat.org pages return 404 #38

Closed sim2github closed 4 years ago

michu2k commented 5 years ago

It looks like there is no problem with the official website. 🤔

sim2github commented 5 years ago

I can access only to https://batflat.org/sitemap.xml All other pages return 404 Not Found

sim2github commented 5 years ago

Now works.

sim2github commented 5 years ago

Hmmm... Did not works till i not define language in URI. After this works fine. Seems the problem with definition lang from browser defaults, redirect to default language if not defined in cookies or smth like that. Will try to recreate issue.

KonstantinFromRussia commented 5 years ago

I observed a similar problem when entering from Russia. Now everything is working.

klocus commented 5 years ago

I think that the problem is with auto detection user's language.

sim2github commented 5 years ago

I cant reproduce on remote anymore. Will try locally with XDebug.

joachim97 commented 3 years ago

Batflat ma kilka błędów których nie poprawili Twórcy w wersji 1.3.6. Najważniejszym błędem jest to, że strona wyświetla się jako strona 404. Aby to naprawić wystarczy w pliku "batflat-master\inc\core\lib\Router.php" zmienić 64 linię ($url = trim(preg_replace('#'.$url.'#', '', $_SERVER['PATH_INFO'], 1), '/'); na $url = trim(str_replace($url, '',$_SERVER['PATH_INFO']), '/');. I błąd 404 znika.