Why does the REDIRECT insert the INDEX.PHP? |
[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
[eluser]GSV Sleeper Service[/eluser]
this line isn't necessary Code: RewriteCond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico)
[eluser]jimps[/eluser]
Change this line in your application/config/config.php: Code: $config['index_page'] = "index.php"; To: Code: $config['index_page'] = "";
[eluser]cobolCowboy[/eluser]
GSV, Thanks I'll try that when I get home tonight from my day job. jimps, Thanks to you also, that was the first thing I did when I installed CI. As I said, the site works great without INDEX.PHP, but the redirect inserts it in the URL which is causing problems. |
Welcome Guest, Not a member yet? Register Sign In |