URI Routing Problem |
[eluser]Unknown[/eluser]
I've been utilising Codeigniter's URI routes feature (in CI 2.0.2) to produce SEO friendly URL's in my applications. I've used this feature many times before (in both this release, and previous releases) and never had any problems, but I'm currently trying to use the following route, and it is failing (producing a 'Not Found' web page). Code: $route['public-sector'] = "main/public_sector"; I've read through the Codeigniter documentation for URI Routing (http://ellislab.com/codeigniter/user-gui...uting.html) but have been unable to find an answer to my problem. The only possible solution I can think of is that there is a restriction on using the word 'public' at the start of your route? Can anyone confirm this? Other than that...I'm stumped. Any help would be greatly appreciated!! ========== UPDATE ========== I've investigated further and I *think* that the request for the 'public-sector' URL is being prevented by my .htaccess file: Code: RewriteEngine on I have a 'public' folder that has my css, images, and js files inside it, and I think that this is the reason why the public-sector URL is not being served. Does anyone have any suggestions (short of changing the name of my public folder, and changing all the paths to my image, css and js files).
[eluser]osci[/eluser]
Code: RewriteEngine on Code: RewriteCond %{REQUEST_FILENAME} !-f
[eluser]Unknown[/eluser]
Thanks for your speedy respone. Exactly what I needed ![]() First time posting in the forums, and the Codeigniter community comes straight to my aid. Fantastic!! |
Welcome Guest, Not a member yet? Register Sign In |