![]() |
.htaccess - Filenames in URI - 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 - Filenames in URI (/showthread.php?tid=12086) |
.htaccess - Filenames in URI - El Forum - 10-05-2008 [eluser]Lockzi[/eluser] Yea, you've guessed it! This is another .htaccess help thread I'm afraid. This is what my current .htaccess looks like Code: <IfModule mod_rewrite.c> and it works just fine for me, except for with my filemanager. When I try to do this Code: http://127.0.0.1/file_management/remove/images/Kass.jpg Code: http://127.0.0.1/file_management/remove/images/Kass_jpg Been googling, but all I can find is how to REMOVE the dot instead of BRING BACK which is what people normally want. Cheers, Lockzi .htaccess - Filenames in URI - El Forum - 10-05-2008 [eluser]Pascal Kriete[/eluser] Where is this rewrite happening? Can you just run str_replace in your script? .htaccess - Filenames in URI - El Forum - 10-05-2008 [eluser]Lockzi[/eluser] I just removed .htaccess and the url still got an underscore in it, maybe it is the security filter in CI? I where using str_replace to fix this but wanted to find the real problem, where ever it's located. ![]() .htaccess - Filenames in URI - El Forum - 10-05-2008 [eluser]Pascal Kriete[/eluser] Hmm, just ran a quick test to double check. It's not CI. Test controller: Code: function home($param) [pre] /test/home/kass.jpg kass.jpg [/pre] Do you have any router changes that might do this? What happens if you read out $_SERVER['PATH_INFO']? .htaccess - Filenames in URI - El Forum - 10-06-2008 [eluser]Lockzi[/eluser] [quote author="inparo" date="1223266214"]Hmm, just ran a quick test to double check. It's not CI. Test controller: Code: function home($param) [pre] /test/home/kass.jpg kass.jpg [/pre] Do you have any router changes that might do this? What happens if you read out $_SERVER['PATH_INFO']?[/quote] Code: function view($param, $param2) returns the following Code: /file_management/view/home/kass_jpg Code: echo $_SERVER['PATH_INFO']; throws an error... Quote:Severity: Notice I haven't touched the routes... Feels like a needle in a haystack! It's driving me mad only because I can't find it. I have solved it by using post to delete files since URL's are stored in the browser and the URL to a deleted file is not good to be stored ![]() Still curiously mad about it though |