I'd like to have urls like this:
http://mysite.com/blah where the first path part is dynamic.
http://mysite.com/blah would forward to http://mysite.com/so…ntroller?q=blah
things like this work fine:
it's ONLY when the first part of the URI is dynamic.
i've tried specifying rules in the url manager, but they don't seem to work if the first path part is dynamic.
any ideas?
even rewrites seem to work improperly…perhaps because yii is relying on script_uri or some other server variables that won't get translated on a rewrite.
RewriteRule ^/([^/])+/?$ /en/o/q/$1 [NC,L] doesn't work but
RewriteRule ^/([^/])+/?$ /en/o/q/$1 [R=302,NC,L] works fine.
I'm stuck, I'd appreciate any help. I'm new to Yii, and I've been struggling to fix this.
Thanks,
Jeff