Hello, there was such a question. I need to make a redirect on the site (site on CI), using .htaccess. Firstly, the problem is this: .htaccess does not work as it should (redirecting to http://site.ru , the site itself is loaded first, and then the redirect to the specified link, the result is: http: // first-site .ru / site.ru / instead of http://site.ru ), secondly, how to make the class be loaded by default not to the main site (url), like http://site.ru , but it was created url with class: http://site.ru/class/.

Tell me how to solve

  • the code-igniter has its own sufficient redirection mechanism, why should there be any more .htaktsevt tulit? .. - deivan_

1 answer 1

Codeigniter has nothing to do with it, in the sense in codeigniter there is no special .htaccess. Roughly speaking, .htaccess is a "config" through which you can "act" on the server http://xpoint.ru/forums/internet/webservers/apache/thread/40177.xhtml there everything is clear

Here's more, to learn http://ruseller.com/lessons.php?rub=29&id=1364