iis - convert .htaccess to web.config on iis7 -
first .htaccess in root setenv application_env development <files *.ini> require valid-user </files> <ifmodule mod_rewrite.c> rewriteengine on rewritebase / rewritecond %{request_filename} !-f rewriterule ^lib(.*)$ ./lib/$1 [l] rewriterule ^(.*)\.(.*)$ ./public/$1.$2 [l] rewriterule ^(.*)$ ./public/$1/ [l] </ifmodule> second .htaccess in /public/ rewriteengine on rewritebase /public rewriterule ^index\.php$ - [l] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.*)/$ ./?page=$1&%{query_string} [l]
i used rules import iis7 it's not work. when debug this, feel second web.config not read. in browser, url redirected http://www.url.be/fr/ , have error message 404. works, url http://www.url.be/?page=fr
i'm lost! guy
Comments
Post a Comment