htaccess issue - 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 issue (/showthread.php?tid=15587) |
htaccess issue - El Forum - 02-09-2009 [eluser]metamorpher[/eluser] Hi, I just set up my first CI site, and started to have some problems with the rewrite engine... My server doesn't recognize my directives, and I've just used the example below: Code: Options -Indexes which is in the wiki... the url is paraguayito.com, where I display some news of my country. I get them via rss and store them into my database... I use a redirect function built by myself. It stores one clic for the article, so I can have some sort of tracker and uses php header function to redirect the browser to the article permalink... I think it's htaccess 'cause when I enter /index.php/ inside the url it does the right stuff... so, can you help me? htaccess issue - El Forum - 02-09-2009 [eluser]metamorpher[/eluser] i have to add that when I was testing it on localhost my entire site was on localhost/par/, so htaccess looked like Code: Options -Indexes and just worked... I don't know what's the issue around this :S htaccess issue - El Forum - 02-09-2009 [eluser]metamorpher[/eluser] AND I used routes... 'cause my class is named feed, redirect is just a function inside feed, so i rutted it this way Code: $route['redirect/:num'] = "feed/redirect"; so, I didn't have to use feed in my url... htaccess issue - El Forum - 02-09-2009 [eluser]metamorpher[/eluser] I just wanted to tell you that the problem is fixed... I don't know how but added a question mark and miracously got fixed :S I though in my mind "wtf, I find a joker"... finally i've got this Code: Options -Indexes hope somebody could explain at least! Thanks htaccess issue - El Forum - 02-09-2009 [eluser]TheFuzzy0ne[/eluser] Well spotted! Thanks for posting how you fixed the problem, too. htaccess issue - El Forum - 02-09-2009 [eluser]Colin Williams[/eluser] Your server probably isn't setting up the PATH_INFO environment variable in the way CI expects. You could likely get rid of the ? mark and set $config['uri_protocol'] to 'REQUEST_URI' or 'ORIG_PATH_INFO' and it would work out for you. |