Welcome Guest, Not a member yet? Register   Sign In
Overriding $config['url_suffix'] in specific controllers/methods
#5

[eluser]CroNiX[/eluser]
Another solution might be to actually write your xml files out to the filesystem instead of having them generated in realtime by the controller. I do that via a nightly cron job (generate the xml) and then ping google to alert them if the sitemap changed. You can just save them in the root of your site and then you could get rid of the routes.

Then if you use "/" as the url_suffix, along with the following htaccess rule which says if its NOT a real file or directory, to process the request with CI, it might work.

Code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]


Messages In This Thread
Overriding $config['url_suffix'] in specific controllers/methods - by El Forum - 07-13-2012, 12:15 PM



Theme © iAndrew 2016 - Forum software by © MyBB