I don’t know if this is the best place for this post but…
I’m having two issues related to removing the index.php from the urls in my app ...
I have followed the instructions from the user guide almost exactly. in fact my .htaccess is simply..
RewriteEngine on
RewriteCond $1 !^(index\.php|public|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
The first issue only shows on the root page of my site… ( http://semantalyzr.com/ )
If I have
$config['index_page'] = "";
I get these notices/errors only on my root page semantalyzr.com/ (actually this is now happening for me whether I have this empty or “index.php”) (EDIT: This was fixed by making my .htaccess empty)
A PHP Error was encountered
Severity: Notice
Message: Undefined offset: 0
Filename: libraries/Router.php
Line Number: 197
A PHP Error was encounteredSeverity: Notice
Message: Undefined offset: 0
Filename: libraries/Router.php
Line Number: 203
A PHP Error was encounteredSeverity: Notice
Message: Undefined offset: 0
Filename: libraries/Router.php
Line Number: 206
The second issues is with the .htaccess file itself I believe…
for a certain type of page on that site you will get a 404 error if you leave out the index.php, (ex. http://semantalyzr.com/page/analysis/http://www.time.com/time/nation/article/0,8599,1858933,00.html?xid=rss-topstories )
I believe this is completely due to the urlencoding in the url conflicting somehow with the .htaccess rewrite rules because if I add the index.php to the url it works fine…
(ex. http://semantalyzr.com/index.php/page/analysis/http://www.time.com/time/nation/article/0,8599,1858933,00.html?xid=rss-topstories )
Currently I have index.php enabled because everything seems to work fine this way… but I would like to remove it ASAP.
Thanks in advance!
