qiwei Posted April 28, 2019 Report Share Posted April 28, 2019 For example, I need to rewrite "/order/main/packages/ssl/?group_id=1" to "/order/ssl/group_id=1", " /order/config/index/ssl/?group_id=1&pricing_id=1" to "/order/ssl/config/group_id=1&pricing_id=1" and so on. Where and how do I set it? Tks! Quote Link to comment Share on other sites More sharing options...
0 Amit Kumar Mishra Posted April 28, 2019 Report Share Posted April 28, 2019 may be by use of .htaccess Quote Link to comment Share on other sites More sharing options...
0 qiwei Posted April 29, 2019 Author Report Share Posted April 29, 2019 7 hours ago, Amit Kumar Mishra said: may be by use of .htaccess Thanks, any other convenient way? Quote Link to comment Share on other sites More sharing options...
0 Amit Kumar Mishra Posted April 29, 2019 Report Share Posted April 29, 2019 not sure mate may be you have to do some customization is the miniphp mvc thing but not sure may be @Paul or @Tyson may be able to guide on this Quote Link to comment Share on other sites More sharing options...
0 Tyson Posted April 29, 2019 Report Share Posted April 29, 2019 You can create a rewrite rule in the .htaccess or you can update the URI routes in /config/routes.php for the order plugin Quote Link to comment Share on other sites More sharing options...
0 qiwei Posted April 30, 2019 Author Report Share Posted April 30, 2019 11 hours ago, Amit Kumar Mishra said: not sure mate may be you have to do some customization is the miniphp mvc thing but not sure may be @Paul or @Tyson may be able to guide on this Thanks again! Quote Link to comment Share on other sites More sharing options...
0 qiwei Posted April 30, 2019 Author Report Share Posted April 30, 2019 8 hours ago, Tyson said: You can create a rewrite rule in the .htaccess or you can update the URI routes in /config/routes.php for the order plugin Is there a successful case to refer to? Or, any official guidelines? Quote Link to comment Share on other sites More sharing options...
0 Tyson Posted April 30, 2019 Report Share Posted April 30, 2019 The routes configuration can be updated to map to specific controllers/methods in the framework. The .htaccess can be updated to rewrite specific URLs. Either way will require some knowledge of regular expressions. Quote Link to comment Share on other sites More sharing options...
0 qiwei Posted May 1, 2019 Author Report Share Posted May 1, 2019 8 hours ago, Tyson said: The routes configuration can be updated to map to specific controllers/methods in the framework. The .htaccess can be updated to rewrite specific URLs. Either way will require some knowledge of regular expressions. Thank you, I'll try it. Quote Link to comment Share on other sites More sharing options...
Question
qiwei
For example, I need to rewrite "/order/main/packages/ssl/?group_id=1" to "/order/ssl/group_id=1", " /order/config/index/ssl/?group_id=1&pricing_id=1" to "/order/ssl/config/group_id=1&pricing_id=1" and so on.
Where and how do I set it?
Tks!
Link to comment
Share on other sites
8 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.