title: CodeIgniter incorrect URL when submitting form
body: <p>I just started using CodeIgniter today, and was following the tutorial at <a href="http://ellislab.com/codeigniter/user-guide/tutorial/index.html" rel="nofollow">the CI website</a>.
  <br/>
  When I got to the final step for creating a new news item, I ran into an issue with the form submit. I would expect the URL to be <code>jonhopkins.net/news/create</code> when I press the form's submit button, but it is going to <code>http://jonhopkins.net/news/jonhopkins.net/news/create</code> instead, which is clearly very wrong, and I have no idea why this is happening. Does anyone know how to fix this?
  <br/><br/>
  Everything else on my site (the Pages part of the tutorial) works perfectly. This is the only thing that is breaking. All of my code is exactly as it appears in the tutorial, except for a change to what happens when an item is successfully submitted to the database, which currently is never happening.</p>
  
  <p><b>News Controller</b></p>
  
  <pre><code>public function create() {
      $this-&gt;load-&gt;helper('form');
      $this-&gt;load-&gt;library('form_validation');
  
      $data['title'] = 'Create a news item';
  
      $this-&gt;form_validation-&gt;set_rules('title', 'Title', 'required');
      $this-&gt;form_validation-&gt;set_rules('text', 'text', 'required');
  
      if ($this-&gt;form_validation-&gt;run() === FALSE) {
          $this-&gt;load-&gt;view('templates/header', $data);
          $this-&gt;load-&gt;view('news/create');
          $this-&gt;load-&gt;view('templates/footer');
      } else {
          //$success will contain the slug of the created item, or FALSE if database insertion failed
          $success = $this-&gt;news_model-&gt;set_news();
          if ($success) {
              $this-&gt;_doView($success);
          } else {
              echo "Something went wrong while trying to submit the news item.";
          }
      }
  }
  
  public function view($slug) {
      $this-&gt;_doView($slug);
  }
  
  private function _doView($slug) {
      $data['news_item'] = $this-&gt;news_model-&gt;get_news($slug);
      if (empty($data['news_item'])) {
          show_404();
      }
  
      $data['title'] = $data['news_item']['title'];
  
      $this-&gt;load-&gt;view('templates/header', $data);
      $this-&gt;load-&gt;view('news/view', $data);
      $this-&gt;load-&gt;view('templates/footer');
  }
  </code></pre>
  
  <p><br/>
  <b>Create View</b></p>
  
  <pre><code>&lt;h2&gt;Create a news item&lt;/h2&gt;
  
  &lt;?php echo validation_errors(); ?&gt;
  &lt;?php echo form_open('news/create') ?&gt;
      &lt;label for="title"&gt;Title&lt;/label&gt; 
      &lt;input type="input" name="title" /&gt;&lt;br /&gt;
  
      &lt;label for="text"&gt;Text&lt;/label&gt;
      &lt;textarea name="text"&gt;&lt;/textarea&gt;&lt;br /&gt;
  
      &lt;input type="submit" name="submit" value="Create news item" /&gt; 
  &lt;/form&gt;
  </code></pre>
  
  <p>And the resulting HTML...</p>
  
  <pre><code>&lt;form action="jonhopkins.net/news/create" method="post" accept-charset="utf-8"&gt; 
      &lt;label for="title"&gt;Title&lt;/label&gt; 
      &lt;input type="input" name="title" /&gt;&lt;br /&gt;
  
      &lt;label for="text"&gt;Text&lt;/label&gt;
      &lt;textarea name="text"&gt;&lt;/textarea&gt;&lt;br /&gt;
  
      &lt;input type="submit" name="submit" value="Create news item" /&gt; 
  &lt;/form&gt;
  </code></pre>
  
  <p><br/>
  <b>News Model</b> I don't think it's ever getting here, but just in case</p>
  
  <pre><code>public function set_news() {
      $this-&gt;load-&gt;helper('url');
  
      $slug = url_title($this-&gt;input-&gt;post('title'), 'dash', TRUE);
  
      $data = array(
          'title' =&gt; $this-&gt;input-&gt;post('title'),
          'slug' =&gt; $slug,
          'text' =&gt; $this-&gt;input-&gt;post('text'),
          'date' =&gt; date("Y-m-d H:i:s")
      );
  
      if ($this-&gt;db-&gt;insert('news', $data)) {
          return $slug;
      } else {
          return FALSE;
      }
  }
  </code></pre>
  
  <p><br/>
  <b>Routes</b></p>
  
  <pre><code>$route['news/create'] = 'news/create';
  $route['news/(:any)'] = 'news/view/$1';
  $route['news'] = 'news';
  $route['(:any)'] = 'pages/view/$1';
  $route['default_controller'] = 'pages/view';
  </code></pre>