Welcome Guest, Not a member yet? Register   Sign In
Problem with URL routing after removing index.php
#1

[eluser]kelseyads2[/eluser]
We configured CodeIgniter to remove the index.php file by removing the index.php in the config settings. We updated our .htaccess file and everything works except when we call script files in the header.

Inside the src="" tag in javascript we can't seem to get anything to load at all.

Here is our .htaccess file contents:

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

And the script tag:

Code:
script type="text/javascript" src="/javascript/tiny_mce/tiny_mce.js"

Anyone know why this would still be routing to the index controller?


Messages In This Thread
Problem with URL routing after removing index.php - by El Forum - 08-03-2009, 07:15 AM
Problem with URL routing after removing index.php - by El Forum - 08-03-2009, 07:26 AM
Problem with URL routing after removing index.php - by El Forum - 08-03-2009, 07:31 AM
Problem with URL routing after removing index.php - by El Forum - 08-03-2009, 07:43 AM
Problem with URL routing after removing index.php - by El Forum - 08-03-2009, 07:44 AM
Problem with URL routing after removing index.php - by El Forum - 08-03-2009, 07:48 AM
Problem with URL routing after removing index.php - by El Forum - 08-03-2009, 07:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB