Answers.Body: <p>Have you got your <code>htaccess</code> file working ok? By default the <code>htaccess</code> file is named incorrectly, it should be <code>.htaccess not</code>htaccess`. You can read about renaming that file in the <a href="http://buildwithcraft.com/docs/installing#step-1-upload-the-files" rel="nofollow">installation docs</a>.</p>
  
  <p>As a quick test you could try:
  "/index.php/new-url"</p>
  
  <p>If that works it's your <code>htaccess</code> file.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-14T07:44:32.907Z
Answers.LastActivityDate: 2015-10-14T18:01:12.753Z
Answers.LastEditDate: 2015-10-14T18:01:12.753Z
Answers.UserDisplayName: joep
Body: <p>I am trying to reset the default path to the dashboard from admin to something else. I have this in <code>config/general.php</code>:</p>
  
  <pre><code>return array(
      'cpTrigger' =&gt; 'new-url',
      'omitScriptNameInUrls' =&gt; true,
      'devMode' =&gt; true,
  );
  </code></pre>
  
  <p>But when I go to <code>devsite.myurl.co.uk/new-url</code>, I get a 404 error. I got this working locally but not since I installed the site on a staging server, and imported the database and changed the general and db files. Any ideas?</p>
  
  <p>If I take out the <code>cpTrigger</code> line, and just use <code>devsite.myurl.co.uk/admin</code>, everything is fine.</p>
  
Tags: <admin><404>
Title: Changing the default admin path
ThreadText: # Changing the default admin path
  
  (Asked by: username_0 on 2015-10-14)
  
  I am trying to reset the default path to the dashboard from admin to something else. I have this in `config/general.php`:
  
  ```
  return array(
      'cpTrigger' => 'new-url',
      'omitScriptNameInUrls' => true,
      'devMode' => true,
  );
  
  ```
  
  But when I go to `devsite.myurl.co.uk/new-url`, I get a 404 error. I got this working locally but not since I installed the site on a staging server, and imported the database and changed the general and db files. Any ideas?
  
  If I take out the `cpTrigger` line, and just use `devsite.myurl.co.uk/admin`, everything is fine.
  
  **Tags:** admin, 404
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-10-14. Score: 4
  
  Have you got your `htaccess` file working ok? By default the `htaccess` file is named incorrectly, it should be `.htaccess not`htaccess`. You can read about renaming that file in the [installation docs](http://buildwithcraft.com/docs/installing#step-1-upload-the-files).
  
  As a quick test you could try:
  "/index.php/new-url"
  
  If that works it's your `htaccess` file.
  
  
  ---
  
  