Closed SwapnilAkolkar closed 5 years ago
Hi, the language changes in the application configuration files: frontend: https://github.com/Dominus77/yii2-advanced-start/blob/de43ce424ab38ef23bd6bcd95ddee5a3c4a35afd/frontend/config/main.php#L38 backend: https://github.com/Dominus77/yii2-advanced-start/blob/de43ce424ab38ef23bd6bcd95ddee5a3c4a35afd/backend/config/main.php#L11
I want to install it on localhost , the project works fine onle server but not on windows as it is under advanced_project folder . I am not able to edit the given .htaccess to work with localhost. can you have any suggestions ? I tried to add advanced_project folder in path befor frontend and backend entries in original htaccess.
The entire project is uploaded to a folder accessible from the Internet, public_html. Files .htaccess are already configured to work correctly. In most cases, they do not change.
Or what exactly you can not?
my htaccess is here c:/xampp/htdocs/advanced-project/.htaccess And thats why I am not able to run it on localhost
It works perfectly on server in public_html but I want to edit and customize it on localhost , but the front page not showing
what I tried is Options FollowSymLinks AddDefaultCharset utf-8
But not works..
sorry I am not gettig how to configure it for localhost . if project is under /advanced-project/ in htdocs
HI got some success with this htaccess but only problem is js and css are not loading correctly..
Most likely the server settings. Apache should look at the root of the project in the directory c:/xampp/htdocs/advanced-project
Also check if there is .htaccess in the directory c:/xampp/htdocs/advanced-project/frontend/web and c:/xampp/htdocs/advanced-project/backend/web
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php
Check Apache mod_rewrite
thanks by default the xampp root is c:\xampp\htdocs and my current output is for front end and it shows links to about as localhost/about instead of localhost/advanced-project/about
does I need to change here return [ 'id' => 'app-frontend', 'language' => 'en', 'homeUrl' => '/', 'basePath' => dirname(DIR), 'bootstrap' => [ 'log', 'modules\main\Bootstrap', 'modules\users\Bootstrap', 'modules\rbac\Bootstrap', ],
no
You need to configure the server to the root directory of the project.
ok thanks for suggestions..
Try to log in: http://localhost/advanced-project/frontend/web
Hi it is in Russian language how can I change its language