Routing and url_suffix |
[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 . Can you tell me how to get suffix working in this scenario.
[eluser]Roosevelt![/eluser]
Lol I figured out the issue. In my .htaccess file I was making CI exclude /games/ in RewriteCond. |
Welcome Guest, Not a member yet? Register Sign In |