Welcome Guest, Not a member yet? Register   Sign In
A redirection does not work with CodeIgniter 2.0
#1

[eluser]WebMada[/eluser]
Hi!

Here is my .htaccess code:

Code:
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php?/$1 [L,QSA]

RewriteRule ^(.*)(recent-news)$ content/recent_news [L]

It works correctly with CI 1.7 but when I migrate to CI 2.0.2 it doesn't work

The redirection to index.php is OK but the following RewriteRule not!

Why???

I try to replace the line
RewriteRule ^(.*)(recent-news)$ content/recent_news [L]

by using CI URI routing in config/routes.php
$route[‘recent-news’] = ‘content/recent_news’;

but no success, the same problem, why?

WebMada
#2

[eluser]WebMada[/eluser]
Till now, I don't succeed to get positive results with RewriteRule
#3

[eluser]WebMada[/eluser]
Hello! Up!

If someone could help me, thanks in advance




Theme © iAndrew 2016 - Forum software by © MyBB