.htaccess - Yii2 + htaccess + wamp gives 404 Not Found -
please help, i've read lot of posts issue, nothing helps.
i have yii2 installation under: c:/sites/mysite
the index.php file in: c:/sites/mysite/web
i have htaccess file under c:/sites/mysite looks this: # turn on rewrite engine rewriteengine on
rewritebase / rewriterule ^index.html?$ home.php [nc,r,l] directoryindex home.php
# on should skip rules rewriterule ^(favicon.ico) - [l] # if directory or file exists, use directly rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d # not allow calls servers testing ou server fi proxy # http://serverfault.com/questions/499125/banning-all-azenv-php-request-to-my-server #rewritecond %{http_referer} .*/azenv\.php [nc,or] #rewriterule .* - [f] #rewritecond %{http:x-forwarded-proto} !https #rewriterule ^.*$ https://%{server_name}%{request_uri} # otherwise forward index.php rewriterule . index.php
i have my-vhosts file has code: servername armanager serveralias armanager documentroot "c:/sites/armanager/web" options indexes followsymlinks options indexes followsymlinks allowoverride require granted
going mysite on firefox works fine.
i have controller escontroller actionsettings function. have view settings.php
going mysite/es/settings gives me dreaded 404 not found error.
can please help?
ok, added .htaccess in web folder:
<ifmodule mod_rewrite.c> rewriteengine on rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule . index.php </ifmodule>
now, works.
Comments
Post a Comment