Strange things with URLs

Hi, I'm using UrlManager to present nice URLs to the user. Everything works fine on my local computer.

But when I took that to the server, it behaves very strange.

I have the following URL config:


			'urlFormat' => 'path',

			'urlSuffix' => '.html',

			'showScriptName' => false,

			'rules' => array(




















					'/womens/clothing/<categoryName:[a-zA-Z0-9_]+>/<categoryTagName:[a-zA-Z0-9_]+>/p<page:d+>' => 'search/category',

					'/womens/clothing/<categoryName:[a-zA-Z0-9_]+>/p<page:d+>' => 'search/category',

					'/womens/clothing/<categoryName:[a-zA-Z0-9_]+>/<categoryTagName:[a-zA-Z0-9_]+>' => 'search/category',

					'/womens/clothing/<categoryName:[a-zA-Z0-9_]+>' => 'search/category',



					'/womens/shops/<shopName:[a-zA-Z0-9_]+>/<categoryName:[a-zA-Z0-9_]+>/<categoryTagName:[a-zA-Z0-9_]+>/p<page:d+>' => 'search/shop',

					'/womens/shops/<shopName:[a-zA-Z0-9_]+>/<categoryName:[a-zA-Z0-9_]+>/p<page:d+>' => 'search/shop',

					'/womens/shops/<shopName:[a-zA-Z0-9_]+>/p<page:d+>' => 'search/shop',

					'/womens/shops/<shopName:[a-zA-Z0-9_]+>/<categoryName:[a-zA-Z0-9_]+>/<categoryTagName:[a-zA-Z0-9_]+>' => 'search/shop',

					'/womens/shops/<shopName:[a-zA-Z0-9_]+>/<categoryName:[a-zA-Z0-9_]+>' => 'search/shop',

					'/womens/shops/<shopName:[a-zA-Z0-9_]+>' => 'search/shop',


					'/womens/clothes' => 'site/clothes',

					'/womens/clothes/<tagName:[a-zA-Z0-9_]+>/p<page:d+>' => 'search/tag',

					'/womens/clothes/<tagName:[a-zA-Z0-9_]+>' => 'search/tag',


					'/womens/search' => 'site/clothes',

					'/womens/search/<term:.+>/p<page:d+>' => 'search/term',

					'/womens/search/<term:.+>' => 'search/term',


					'/womens/products/<productID:d+>' => 'product/view',



All urls are crated correctly, but when I request them, strange things happen:


All that works fine, but


shows blank page (0 bytes) with code 200 (in firebug's NET tab)

I'm using the following .htaccess:

Options +FollowSymLinks

IndexIgnore */*

RewriteEngine on

# if a directory or a file exists, use it directly

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

# otherwise forward it to index.php

RewriteRule . index.php

When I add the line

ehco 'bla-bla-bla'; exit;

BEFORE any code in the index.php, it shows nothing like it is not redirected anywhere… Any ideas what may cause this?

Any help is greately appreciated!

Um… no, it redirects to index.php, but doesn't invoke product->actionView() method.

Do you mean only the following URL doesn't work, and all others work as expected?…ducts/1441.html

yes, all other, including - should be right the same, but it works fine!

Also, when I go to that page, nothing goes to log for this request - as if application breaks even before it starts doing something.

Did you try moving the rule to the first place?

Do you have a directory named womens/products ?

And you did mention that nothing is logged when accessing this URL?

This is very weird…If I were you, without debugger available, I would insert die() statement here and there to see where the request is reached.

Sorry, that's my fault. I used simply echo 'bla-bla'; and it didn't output anything, so I thought it doesn't get there. With die('bla-bla'); it showed me this text, so I'll continue debugging as usual.