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:

'urlManager'=>array(


			'urlFormat' => 'path',


			'urlSuffix' => '.html',


			'showScriptName' => false,


			'rules' => array(


					'/profiles/<userID:d+>'=>'user/summary',


					'/myStyle'=>'user/summary',


					'/myStyle/register'=>'user/register',


					'/myStyle/register/thankYou'=>'user/thankYou',


					'/myStyle/activate'=>'user/activate',


					'/myStyle/login'=>'user/login',


					


					'/myStyle/favourites/looks'=>'user.favorites/listLooks',


					'/myStyle/favourites/products'=>'user.favorites/listProducts',


					'/myStyle/ratings'=>'user.ratings/list',


					'/myStyle/profile'=>'user/profile',


					


					'/admin/users'=>'admin.user/list',


					'/admin/users/create'=>'admin.user/create',


					'/admin/users/update'=>'admin.user/update',


					


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


					'/womens/clothing'=>'site/clothing',


					


					'/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'=>'site/shops',


					'/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:

Quote

http://site.com/wome...Dresses/p2.html

http://site.com/wome…ng/Dresses.html

http://site.com/wome…ses/offend.html

http://site.com/wome…/bracelets.html

http://site.com/wome…sort=popularity

All that works fine, but

Quote

http://site.com/wome...ducts/1441.html

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?

http://site.com/wome…ducts/1441.html

yes, all other, including

http://site.com/profiles/1.html - 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.