I’ve created an A record in DNS. This is how my path to the app looks like:
And something went wrong with links. Here’s how my frontend/config/main.php looks like:
'request' => [ 'baseUrl' => '/', ], 'urlManager' => [ 'enablePrettyUrl' => true, 'showScriptName' => false, 'suffix' => '/', 'rules' => [ '' => 'site', 'logout' => 'site/logout', ] ],
This is how I format my links:
<a href="<?php echo Url::to(['user/index']); ?>">Users</a>
On my local machine everything is perfect, but on production, it’s not. I think it’s a problem because I use a subdomain.
Do you know what might be a problem?