CodeIgniter Forums
.htaccess is bugging out on 2 links? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: .htaccess is bugging out on 2 links? (/showthread.php?tid=13234)



.htaccess is bugging out on 2 links? - El Forum - 11-15-2008

[eluser]amites[/eluser]
Hello,

I have a bug showing up with 1 pair of links that are somehow messing up in .htaccess

the site can be seen at:
http://fromanonymous.com/database/

the links are
http://fromanonymous.com/database/msg/block.html
http://fromanonymous.com/database/msg/unblock.html

both of which are being routed improperly, with the .htaccess below in place, without the .htaccess to remove the trailing index.php the site works properly, with the same .htaccess file on my local server it is working properly, any ideas?

Code:
<IfModule mod_rewrite.c>
   RewriteEngine On

   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
   ErrorDocument 404 /index.php
</IfModule>



.htaccess is bugging out on 2 links? - El Forum - 11-18-2008

[eluser]amites[/eluser]
no ideas from anyone?

right now I'm disabling the .htaccess to meet my deadline, this is still bugging the hell outta me

am I missing any information in this post?

there are no folders or directories named post in the root folder, and as I said, the same settings work perfectly on my localhost computer...


.htaccess is bugging out on 2 links? - El Forum - 11-18-2008

[eluser]amites[/eluser]
I FOUND IT!!!


wasn't .htaccess

I had created a function called view which was loading itself as the default everytime I accessed the msg controller, funny thing is this only happened on Linux and not on windows,

worth noting in the future, don't do that