Welcome Guest, Not a member yet? Register   Sign In
.htaccess issue I could use some assistance
#1

[eluser]draconus[/eluser]
I am using a calendar plugin I found for codeignitor, and it is pretty, but, it is giving me .htaccess issues. I am not sure what the deal is.

I wrote my htaccess file to rewrite out the index.php, but one function within the calendar controller seems to still be enforcing that I use the index.php

here is my htaccess file:
Code:
RewriteEngine On
RewriteBase /

RewriteCond $1 !^(index\.php|assetts|css|img|images|js|themes|install|files|robots\.txt)
RewriteRule ^(.*)$ index.php?/$1 [L]

And here is the function that seems to need index.php in the url:
Code:
function index(){
        // The forth segment will be used as timeid
        $timeid = $this->uri->segment(3);
        if($timeid==0)
            $time = time();
        else
            $time = $timeid;

        // we call _date function    
        $data = $this->_date($time);

        // Set all other variables here
        $data['title'] = "Manage Calendar";
        $data['header'] = 'NFF | Events Calendar';
        $this->load->view('calendar_home', $data);
    }

in the view side of things, the url for current month view is like this:
http://nff/calendar

but when I click next month, which passes a timestamp in uri segment 3, it requires the url be like this(as an example):
http://nff/index.php/calendar/index/1280635200


Messages In This Thread
.htaccess issue I could use some assistance - by El Forum - 07-29-2010, 03:25 PM
.htaccess issue I could use some assistance - by El Forum - 07-29-2010, 03:26 PM
.htaccess issue I could use some assistance - by El Forum - 07-29-2010, 10:46 PM



Theme © iAndrew 2016 - Forum software by © MyBB