.htaccess简单重定向规则

时间:2017-01-22 11:43:48

标签: .htaccess

我想重定向

Basic Query in MySql:

SELECT *, IF(cloumn_name IS NULL, 1, 0) as cloumn_name_alias FROM `table_name` WHERE 1 ORDER BY cloumn_name_alias, cloumn_name ASC;

For Yii2 Framework:

$dataProvider = new ActiveDataProvider([
            'query' => $query,
            'sort' => [
                'defaultOrder' => [
                    'position_alias' => SORT_ASC,
                    'position'       => SORT_ASC,
                ],
                'attributes' => [
                    'position_alias',
                    'position',
                ]
            ]
        ]);

前:

NumberPicker mDateNumberPicker= new NumberPicker(this);
mDateNumberPicker.setMinValue(0);
mDateNumberPicker.setMaxValue(5);
mDateNumberPicker.setDisplayedValues( new String[] { "25-5-2010" ,"25-5-2011", "25-5-2012", "25-5-2013","25-5-2014","25-5-2015" } );

我试过没有成功:

  

RewriteRule ^ chat(。*)$ webrtcchat $ 1 [R = 301,L]

这条规则给了我不好的结果(插入一些/ var / www)

https://example.com/webrtcchat/[anyString]/[AnySTring]
->
https://example.com/chat/[anyString]/586c4a7251c2a

有什么想法吗?

0 个答案:

没有答案