qiwei Posted April 28, 2019 Report 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
0 Amit Kumar Mishra Posted April 28, 2019 Report Posted April 28, 2019 may be by use of .htaccess Quote
0 qiwei Posted April 29, 2019 Author Report Posted April 29, 2019 On 4/28/2019 at 5:54 PM, Amit Kumar Mishra said: may be by use of .htaccess Expand Thanks, any other convenient way? Quote
0 Amit Kumar Mishra Posted April 29, 2019 Report 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
0 Tyson Posted April 29, 2019 Report 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
0 qiwei Posted April 30, 2019 Author Report Posted April 30, 2019 On 4/29/2019 at 2:19 PM, 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 Expand Thanks again! Quote
0 qiwei Posted April 30, 2019 Author Report Posted April 30, 2019 On 4/29/2019 at 4:37 PM, 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 Expand Is there a successful case to refer to? Or, any official guidelines? Quote
0 Tyson Posted April 30, 2019 Report 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
0 qiwei Posted May 1, 2019 Author Report Posted May 1, 2019 On 4/30/2019 at 4:36 PM, 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. Expand Thank you, I'll try it. Quote
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!
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.