Created
November 5, 2012 20:54
-
-
Save tkafka/4020281 to your computer and use it in GitHub Desktop.
Nette 2 na Wedos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# enable cool URL | |
<IfModule mod_rewrite.c> | |
# FastCGI | |
SetEnv NETTE_HTACCESS ok | |
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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