Skip to content

Instantly share code, notes, and snippets.

@tkafka
Created November 5, 2012 20:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tkafka/4020281 to your computer and use it in GitHub Desktop.
Save tkafka/4020281 to your computer and use it in GitHub Desktop.
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