Welcome Guest, Not a member yet? Register   Sign In
Routing and url_suffix
#1

[eluser]Roosevelt![/eluser]
Hello,
I am a little confused with this and hopefully someone can help me. I got both of working seperately but when I combine them, it dosn't work well.

In the routes.php file I have:

Code:
$route['games/(:num)'] = "welcome/games/$1";

In the config.php file I have:

Code:
$config['url_suffix'] = ".html";

So naturally if I visit http://www.test.com/games/1.html it should work but it doesn't.

But to test I tried http://www.test.com/welcome/games/1.html and it works just fine Smile.

Can you tell me how to get suffix working in this scenario.
#2

[eluser]Roosevelt![/eluser]
Lol I figured out the issue. In my .htaccess file I was making CI exclude /games/ in RewriteCond.




Theme © iAndrew 2016 - Forum software by © MyBB