Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Nette 2 na Wedos
# enable cool URL
<IfModule mod_rewrite.c>
# FastCGI
SetEnv NETTE_HTACCESS ok
</IfModule>
// Zdroj: http://forum.nette.org/cs/12726-zase-wedos-a-404-na-vsechna-url-krome-dam-100-kc-za-vyreseni#p91190
if (
function_exists('apache_get_modules') && in_array('mod_rewrite', apache_get_modules())
|| isset($_SERVER["NETTE_HTACCESS"])
) {
$container->router[] = new Route('index.php', 'Front:Home:default', Route::ONE_WAY);
// ...
} else {
$container->router = new SimpleRouter('Front:Home:default');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment