• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Disapointed. Something going wrong with my routing

Hi guys,

I'm working on a huge project with CodeIgniter and I've a mysterious problem.

Facts :
I've 3 development environments. Development, Staging and Production.
I just developed a sitemap for my website (a sitemap with approximately 30000 sub-sitemaps).

My sitemap is based on a controller "Sitemap", routed like that :

$route['sitemap\.xml'] = 'sitemap/index';
$route['sitemap/main\.xml'] = 'sitemap/structure';
$route['sitemap/(:any)\.xml'] = 'sitemap/map/$1';

.htaccess on production :

Options +FollowSymLinks -Indexes
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f  
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|assets/|robots\.txt|([a-z0-9]+\.html))
RewriteRule ^(.*)$ index.php?/$1 [L]

All of my site runs perfectly on each environment.

BUT. In Development and in Staging, I do domain.com/sitemap.xml then, it works perfectly.
In production, domain.com/sitemap.xml doesn't work, but domain.com/index.php/sitemap.xml works.
When I request for domain.com/sitemap.xml, the default controller is called.

Note that my production server is on FastCGI.

Any idea ? Thank you.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.