title: How to add link to a static page in Yii framework in routing rules?
body: <p>i hav my routing rules as</p>
  
  <pre><code>'components'=&gt;array(
      /*'urlManager'=&gt;array(
          'urlFormat'=&gt;'path',            
      ),*/
      'urlManager'=&gt;array(
          'urlFormat'=&gt;'path',
          'rules'=&gt;array(  
              '&lt;controller:\w+&gt;/&lt;id:\d+&gt;'=&gt;'&lt;controller&gt;/view',
              '&lt;controller:\w+&gt;'=&gt;'&lt;controller&gt;/index',
              '&lt;controller:\w+&gt;/&lt;action:\w+&gt;/&lt;id:\d+&gt;'=&gt;'&lt;controller&gt;/&lt;action&gt;',
              '&lt;controller:\w+&gt;/&lt;action:\w+&gt;'=&gt;'&lt;controller&gt;/&lt;action&gt;'
  
  
          )
  </code></pre>
  
  <p>now i want to hav a img inside my page that links to a static webpage
  eg.</p>
  
  <pre><code>&lt;a href="www.example.com"&gt;&lt;img&gt;&lt;/a&gt;
  </code></pre>
  
  <p>however this link redirects to</p>
  
  <pre><code> www.example.com/example.com
  </code></pre>
  
  <p>what rule should i add so that only on this link it redirects to the static page</p>
  
  <p>and my sitebase is www.example.com</p>
  
  <p>so any link generated by Yii is always </p>
  
  <pre><code>www.example.com/"something"
  </code></pre>