Codeignitor index.php breaking image paths
Posted
by
BeatAlex
on Stack Overflow
See other posts from Stack Overflow
or by BeatAlex
Published on 2013-10-21T09:46:48Z
Indexed on
2013/10/21
9:54 UTC
Read the original article
Hit count: 201
.htaccess
When I don't edit my .htaccess
file, my image path reads something like: http://this.website.com/codeigniter/inc/images/logo.jpg
.
However, as soon as I add this code into the .htaccess
file:
RewriteEngine On
RewriteCond $1 !^(index\.php)
RewriteRule ^(.+)$ index.php?$1 [L]
(to remove the index.php
from the URL), I get 404 error, even with the exact same path.
How do I remove index.php
and still have access to my images?
© Stack Overflow or respective owner