Ken Posted December 4, 2013 Report Share Posted December 4, 2013 I kind of wish we had cleaner URLs. /plugin/order/main/signup/registration /plugin/order/main/index/product-name plugin, main and index all seem unnecessary for the purposes of the URL. Obviously it's part of Blesta's code structure but I'm just curious if we can remove these parts of the URLs? Quote Link to comment Share on other sites More sharing options...
0 Michael Posted December 4, 2013 Report Share Posted December 4, 2013 I suppose you can via .htaccess code, not sure how however I don't mind personally because they get the job done lol Quote Link to comment Share on other sites More sharing options...
0 Ken Posted December 4, 2013 Author Report Share Posted December 4, 2013 I suppose you can via .htaccess code, not sure how however I don't mind personally because they get the job done lol It's not something a can live without but a matter of preference. I'm curious what that .htaccess code is without breaking anything. Quote Link to comment Share on other sites More sharing options...
0 Michael Posted December 4, 2013 Report Share Posted December 4, 2013 It's not something a can live without but a matter of preference. I'm curious what that .htaccess code is without breaking anything. Try this: RewriteEngine On RewriteRule ^plugin/order/main/signup/registration /plugin/order/main/index/registration Quote Link to comment Share on other sites More sharing options...
0 Tyson Posted December 4, 2013 Report Share Posted December 4, 2013 You can setup routes in /config/routes.php. There's not much documentation to illustrate this, but the syntax is similar to htaccess rules. Observe the warning when changing configuration settings: BE CAREFUL! Modifying these settings could have disastrous effects. Only modify these settings if you know what you are doing. Michael 1 Quote Link to comment Share on other sites More sharing options...
0 Ken Posted December 4, 2013 Author Report Share Posted December 4, 2013 Well that's a start. I see where to change it but am still unsure on what to change it to, especially with a disclaimer like that. If you or Cody find time to make a suggestion it'd be appreciated. Ideally it'd be nice if I could just shorten that registration URL down to /registration or /signup and then shorten the order URL down to /order/product-name. If that won't work then I'm open to other possibilities. I mainly just want to get rid of words like "plugin" and "index". Quote Link to comment Share on other sites More sharing options...
0 electric Posted December 30, 2013 Report Share Posted December 30, 2013 I agree with this, and would like to add my opinion that "short" URLs are important. It would be good for Blesta to have a "enable short urls" or "enable url rewriting" function, sort of like how wordpress does it. Then make those long unwieldy URLs into nice-looking short ones. Our current billing software (not Blesta, at the moment), we "solved" this problem by creating our own redirection script to handle incoming URLs, like this: http://ourdomain.com/go/login (Redirects to our customer login page.) It's a bit clunky, but works ok. Unfortunately, it isn't a permanent URL rewrite.. it's just a URL redirect. It would be fantastic if Blesta could actually include URL rewriting into their code so we can have nicer URLs. Quote Link to comment Share on other sites More sharing options...
0 Cody Posted January 3, 2014 Report Share Posted January 3, 2014 See my post on Short Order Routes. Chris 1 Quote Link to comment Share on other sites More sharing options...
Question
Ken
I kind of wish we had cleaner URLs.
/plugin/order/main/signup/registration
/plugin/order/main/index/product-name
plugin, main and index all seem unnecessary for the purposes of the URL. Obviously it's part of Blesta's code structure but I'm just curious if we can remove these parts of the URLs?
Link to comment
Share on other sites
7 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.