How to move yii2 framework from localhost to web server?

Hi.

I just finished my website in debug mode.

Now I would like to move a page to the web server from localhost.

What should I do step by step to make everything work properly?

At the moment I just have uploaded all the files on the server. The page displays, but a lot of options does not work.

Anybody ?

When I do it like here:

http://hey-bloggers.com/yii2/how-to-change-yii-framework-in-productiondevelopment-mode/

then login, registration and my own css style doesnt work…

My fault.

Login and registration works ok but css styles are mixed…

In frontend/config/main.php

Use $baseUrl = str_replace(’/frontend/web’, ‘’, (new Request)->getBaseUrl());

In root directory put following code in .htaccess file:

Options -Indexes

<IfModule mod_rewrite.c>

RewriteEngine on

#RewriteCond %{REQUEST_URI} !^public

RewriteRule ^(.*)$ frontend/web/$1 [L]

#RewriteCond %{REQUEST_URI} ^backend

#RewriteRule ^(.*)$ backend/web/$1 [L]

</IfModule>

Deny accessing below extensions

<Files ~ "(.json|.lock|.git)">

Order allow,deny

Deny from all

</Files>

Deny accessing dot files

RewriteRule (^\.|/\.) - [F]

And in frontend/web folder

Make a htaccess file

and paste

RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . index.php

Hope it works!!