CodeIgniter Forums

Full Version: url rewrite
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum


I would like to remove my index.php...
i followed the instructions in the userguide with .htaccess

but that doesnt seem to work...

so for /product should go to index.php/product
I get:
No input file specified.

and If i go to index.php/product afterwards my layout is completely f*kd..
my css , jq refs, images don't seem to work...

I guess maybe i should add my assets folders aswell like the |images in the rewrite.
but that still doesnt make /product go to index.php/product

I use both uri segments AND querystrings
any help would be greatly appreciated.

El Forum

It would be fine if you post your .htaccess file such that we can understand where/what the problem is.

El Forum

it is the same as in the example from the wiki.

El Forum

It would be still fine if you post here the exact copy of the file which you are using, probably you might have been missing some parameter in wiki. Don't feel like ur sharing your secrets, you can change your original url to local host or

and post your .htaccess file, then only we can understand what problem actually you have?? ok

El Forum

I think there's also something in the config file to change. It looks like this:

| Index File
| Typically this will be your index.php file, unless you've renamed it to
| something else. If you are using mod_rewrite to remove the page set this
| variable so that it is blank.
$config['index_page'] = "index.php";

Hope that works...

El Forum

Sometimes add a question mark(?) is helpful and solve rewrite issue.
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /project/jbl/index.php?/$1 [L]
recently i have changed my server and add a question mark and it works fine now.