title: .htaccess is not working on cpanel
body: <p>Here is my <code>.htaccess</code> for <code>localhost:8080</code> which is working fine.</p>
  
  <pre><code># Deny OR Allow Folder Indexes.
  # Since we disable access to PHP files you 
  # can leave this on without worries. 
  # OR better yet, create a .htaccess file in
  # the dir you want to allow browsing and
  # set it to +Indexes
  Options -Indexes
  
  Options +FollowSymLinks
  
  # Set the default file for indexes
  DirectoryIndex index.php
  
  &lt;IfModule mod_rewrite.c&gt;
      # mod_rewrite rules
      RewriteEngine on
  
      # The RewriteBase of the system (if you are using this sytem in a sub-folder).
       RewriteBase /rectangle/
  
      # If the file is NOT the index.php file
      RewriteCond %{REQUEST_FILENAME} !index.php
      # Hide all PHP files so none can be accessed by HTTP
      RewriteRule (.*)\.php$ index.php/$1
  
      # If the file/dir is NOT real go to index
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule ^(.*)$ index.php/$1 [QSA,L]
  
  &lt;/IfModule&gt;
  
  # If Mod_ewrite is NOT installed go to index.php
  &lt;IfModule !mod_rewrite.c&gt;
      ErrorDocument 404 index.php
  &lt;/IfModule&gt; 
  </code></pre>
  
  <p>And this is my .htaccess for <code>www.sunrisecoachingcenter.com</code> which is showing the following <a href="http://www.sunrisecoachingcenter.com/projects" rel="nofollow"><strong>link</strong></a></p>
  
  <pre><code># Deny OR Allow Folder Indexes.
  # Since we disable access to PHP files you 
  # can leave this on without worries. 
  # OR better yet, create a .htaccess file in
  # the dir you want to allow browsing and
  # set it to +Indexes
  Options -Indexes
  
  Options +FollowSymLinks
  
  # Set the default file for indexes
  DirectoryIndex index.php
  
  &lt;IfModule mod_rewrite.c&gt;
      # mod_rewrite rules
      RewriteEngine on
  
      # The RewriteBase of the system (if you are using this sytem in a sub-folder).
       RewriteBase /www.sunrisecoachingcenter.com/
  
      # If the file is NOT the index.php file
      RewriteCond %{REQUEST_FILENAME} !index.php
      # Hide all PHP files so none can be accessed by HTTP
      RewriteRule (.*)\.php$ index.php/$1
  
      # If the file/dir is NOT real go to index
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule ^(.*)$ index.php/$1 [QSA,L]
  
  &lt;/IfModule&gt;
  
  # If Mod_ewrite is NOT installed go to index.php
  &lt;IfModule !mod_rewrite.c&gt;
      ErrorDocument 404 index.php
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>What can I do now?</p>