title: Yii app uploaded on host brings up a 404 error when I call a specific action
body: <p>I am developing my app using xampp, and everything works fine there. But when I upload it on a host (hostinger) and try accessing a specific page I get a 404 error.</p>
  
  <p>The button linking me to that page (from a different controller) has this as a url:</p>
  
  <pre><code>array('url'=&gt;'Yii::app()-&gt;createUrl("symptomHistory/patientSymptomHistory",array("id"=&gt;$data-&gt;primaryKey))',
  </code></pre>
  
  <p>(it's a button in a gridview)</p>
  
  <p>The action that it calls is the following:</p>
  
  <pre><code>public function actionPatientSymptomHistory($id)
  {
      //create model doctor request and search the database for a doctor request between the doctor user and 
      //the patient user
      $doctorRequestModel = new DoctorRequests;
      $doctorPatientRequest = $doctorRequestModel-&gt;findByAttributes(array('doctorID'=&gt;Yii::app()-&gt;user-&gt;id, 'userID'=&gt;$id, 'doctorAccepted'=&gt;1));
      //if there is an accepted doctor request between doctor and patient, show the patients's symptom history
      if(isset($doctorPatientRequest))
      {   
          $model = new Symptomhistory;
  
  
          //model for the patients data
          $patientModel = User::model()-&gt;findByPk($id);
          //empty array to store all the user's symptoms
          $symptomItems = array();
          //find all symptomHistory records belonging to the user
          $symptomHistoryModels = $model-&gt;findAllByAttributes(array('user_id'=&gt;$id));
          //loop through all the symptomHistory records that belong to the user
          foreach($symptomHistoryModels as $symptom)
          {
              //switch case for event color. set color for each flag type
              switch($symptom-&gt;symptomFlag)
              {
                  case '1':
                      $symptomColor = '#A1EB86';
                      break;
                  case '2':
                      $symptomColor = '#CCCA52';
                      break;
                  case '3':
                      $symptomColor = '#F25138';
                      break;
                  default:
                      $symptomColor = '#36c';
              }
              //create event
              $symptomItem=array('title'=&gt;$symptom-&gt;symptomTitle,
                                  'start'=&gt;$symptom-&gt;dateSymptomFirstSeen,
                                  'end'=&gt;$symptom-&gt;dateSearched,
                                  'symptomCode'=&gt;$symptom-&gt;symptomCode,
                                  'symptomHistoryID'=&gt;$symptom-&gt;id,
                                  'flag'=&gt;$symptom-&gt;symptomFlag,
                                  'color'=&gt;$symptomColor
              );
              //copy symptomHistory event into array
              array_push($symptomItems, $symptomItem);
          }
          //render patient history
          $this-&gt;render('patientSymptomHistory',array(
              'model'=&gt; $model, 'patientModel'=&gt; $patientModel, 'symptomHistoryEvents'=&gt;$symptomItems
          ));
      }
      else //else throw exception
      {
          throw new CHttpException(403, 'You are not permitted to check this patient\'s Symptom History');
      }
  }
  </code></pre>
  
  <p>(sorry for the extra long code, but I honestly have no idea what might help and what might not).</p>
  
  <p>I repeat I get a 404 error, not  a 403 one.</p>
  
  <p>Does anyone have any idea why I am getting this error? Thank you for your help :)</p>