skip to Main Content

i upload all of my web folder to the root
and then move all my project to inside a folder
and fixed all the addresses in the main index.php

every thing works fine but i dont know for what reason this happens

this is 404 of Cpanel not me

But:

    class SiteController extends Controller
    {
           public function actionIndex()
    {
        return $this->render('index');
    }
    
  public function actionTest()
    {
        echo 'awdaw';
    }

|

but site index Works fine

enter image description here

2

Answers


  1. Chosen as BEST ANSWER

    i found the solution in my htaccess file in the end my .htaccess become this and it is ok right now

    RewriteEngine On 
    RewriteCond %{SERVER_PORT} 80
    RewriteCond %{HTTP_HOST} ^(www.)?myaxagent.com
    RewriteRule ^(.*)$ https://www.mysitetesttest.com/$1 [R,L]
    
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule . index.php [L]
    

  2. Please check your htacess file and try to call using controller/action. Here in your case it will be site/test

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search