I created some projects with yii 1 and I decided to learn yii2 to go for the next step.
So I have this basic question.
Can I copy and paste the files of the web directory at the root directory of my server, making the changes at the index.php?
For now I created a .htaccess file at root directory as bellow but then the urls show the "web" folder.It is supposed to be ok at the production server?
http://localhost/blog/web/site/contact
Options -Indexes
RewriteEngine on
RewriteRule ^(.*)$ web/$1 [L]
.htaccess of "web" folder
# use mod_rewrite for pretty URL support
RewriteEngine on
# If a directory or a file exists, use the request directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Otherwise forward the request to index.php
RewriteRule . index.php
# ...other settings...