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
All that works fine, but
Quote
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!