Welcome Guest, Not a member yet? Register   Sign In
.htaccess and rewrite on mac
#12

[eluser]learning_php[/eluser]
Hi have now set the Allowoveride to all but it still does not seem to be working? this is what i have got.

controller
Code:
<?php

class Homepage extends Controller {

    function Homepage()
    {
        parent::Controller();    
    }
    
    function index()
    {
        $this->load->view('index.php');
    }
    
    
    function About()
    {
        $this->load->view('about.php');
    }
    
}

/* End of file homepage.php */
/* Location: ./system/application/controllers/homepage.php */

view
Code:
<body>
    
    <div id = "container">
  
        <div id = "header">
            <div id= "nav">
                <div id = "tab">
                    <div id = "navtext"><p>&lt;?php echo anchor('/index', 'Home');?&gt;</p></div>
                </div>
                <div id = "tab">
                      <div id = "navtext"><p>&lt;?php echo anchor('/about', 'About');?&gt;</p></div>
                  </div>
                <div id = "tab">
                      <div id = "navtext">Work</div>
                  </div>
                  <div id = "tab">
                      <div id = "navtext">Contact</div>
                  </div>
                  <div id = "tab">
                      <div id = "navtext">Blog</div>
                  </div>
            </div>
        </div>
        
        <div id = "content">
            <div id ="textbox">
                <div id ="blogtextbox"></div>
            </div>
            <div id = "sidetextbox"></div>
        </div>
    </div>

    
    &lt;/body&gt;

.htaccess
Code:
<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /index.php/$1 [QSA,L]
</IfModule>

httpd.conf
Code:
# AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride All


Messages In This Thread
.htaccess and rewrite on mac - by El Forum - 02-10-2010, 03:03 AM
.htaccess and rewrite on mac - by El Forum - 02-10-2010, 08:43 AM
.htaccess and rewrite on mac - by El Forum - 02-11-2010, 07:00 AM
.htaccess and rewrite on mac - by El Forum - 02-11-2010, 07:03 AM
.htaccess and rewrite on mac - by El Forum - 02-11-2010, 07:14 AM
.htaccess and rewrite on mac - by El Forum - 02-11-2010, 07:27 AM
.htaccess and rewrite on mac - by El Forum - 02-11-2010, 07:36 AM
.htaccess and rewrite on mac - by El Forum - 02-11-2010, 07:46 AM
.htaccess and rewrite on mac - by El Forum - 02-11-2010, 08:08 AM
.htaccess and rewrite on mac - by El Forum - 02-11-2010, 08:16 AM
.htaccess and rewrite on mac - by El Forum - 02-12-2010, 05:07 AM
.htaccess and rewrite on mac - by El Forum - 02-13-2010, 01:24 PM
.htaccess and rewrite on mac - by El Forum - 05-11-2010, 07:53 AM
.htaccess and rewrite on mac - by El Forum - 05-11-2010, 08:02 AM
.htaccess and rewrite on mac - by El Forum - 05-11-2010, 03:55 PM



Theme © iAndrew 2016 - Forum software by © MyBB