Welcome Guest, Not a member yet? Register   Sign In
Why does the REDIRECT insert the INDEX.PHP?
#1

[eluser]cobolCowboy[/eluser]
How's every body doing?

First of, on a scale of 1-10, my overall web development skill is about a 6.

I tried searching for an answer, but non that fixed the problem jumped out at me.

I'm running WAMP and set up my CI folders such that the system folder is above the web root.
Also renamed my applications folder to app and removed the INDEX.PHP from the URL.

This is the .htaccess contents

RewriteEngine on
RewriteCond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L,QSA]

The problem is I tried a REDIRECT for the first time and it insists on having INDEX.PHP in the URL. This renders my images UNfound.

file structure:

/Code_Igniter_1.7.2
/sys
/www
/app
/css
/images
/js


This URL works http://localhost/admin/index
as does this http://localhost/admin
and this http://localhost/index.php/admin

but not this http://localhost/index.php/admin/index

Any clues as to what might be happening. Everything else is fine the CSS is found, but not the images.

I fear it may be URI segment related


Messages In This Thread
Why does the REDIRECT insert the INDEX.PHP? - by El Forum - 01-27-2010, 07:03 AM
Why does the REDIRECT insert the INDEX.PHP? - by El Forum - 01-27-2010, 07:09 AM
Why does the REDIRECT insert the INDEX.PHP? - by El Forum - 01-27-2010, 12:13 PM
Why does the REDIRECT insert the INDEX.PHP? - by El Forum - 01-27-2010, 01:33 PM



Theme © iAndrew 2016 - Forum software by © MyBB