Welcome Guest, Not a member yet? Register   Sign In
Problems with url

Hi, all.
I have read almost all posts of this and other forums but my problem remains.
I'm working on Windows server and in my config.php i put

$config['base_url'] = 'http://www.my_site.com/';

and my .htaccess is

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

    #Removes access to the system folder by users.
    #Additionally this will allow you to create a System.php controller,
    #previously this would not have been possible.
    #'system' can be replaced if you have renamed your system folder.
    RewriteCond %{REQUEST_URI} ^system.*
    RewriteRule ^(.*)$ /index.php?/$1 [L]
    #When your application folder isn't in the system folder
    #This snippet prevents user access to the application folder
    #Submitted by: Fabdrol
    #Rename 'application' to your applications folder name.
    RewriteCond %{REQUEST_URI} ^application.*
    RewriteRule ^(.*)$ /index.php?/$1 [L]

    #Checks to see if the user is attempting to access a valid file,
    #such as an image or css document, if this isn't true it sends the
    #request to index.php
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?/$1 [L]

<IfModule !mod_rewrite.c>
    # If we don't have mod_rewrite installed, all 404's
    # can be sent to index.php, and everything works as normal.
    # Submitted by: ElliotHaughin

    ErrorDocument 404 /index.php

Now the first problem is that i can reach any page i wrote only if i put a new line in my route.php like

$route['new_member'] = 'login/create_member';

Really it may not be a serious problem except that now I have to use pagination and to call a controller function from a view.
So i have, for example,


and in a view loaded by my_controller

anchor(site_url('my_controller/delete_item/'.$row->idItem), 'Delete')

both having 404 page not found as result.
I tried to route both in hundred ways but i always have the same result: it search a page with a similar link and it can't understand pagination or controller/method/param.

Also i tried to assign $config['uri_protocol'] to any options but nothing changed.
Can you help me, please?
Thanks in advance.

Theme © iAndrew 2016 - Forum software by © MyBB