qed-tech Posted January 31, 2012 Share Posted January 31, 2012 Hello everyone For a site of one of our customers our programmer created his own CMS which works OK at the site, but now the customer wants to shorten the URLS which are generated by the system. Is this easily possible? The programmer doesn't have the time to help us with it so that's why I try my luck here... I hope somebody can help me. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/256116-shorten-url-in-custom-made-cms/ Share on other sites More sharing options...
spiderwell Posted January 31, 2012 Share Posted January 31, 2012 by shorten what is he after exactly? you could name all the files to be 1 letter long? seems stupid and pointless is the length down to querystrings? use POST methods? is it to get SEO friendly urls? so page.php?section=1 becomes /sectionname/index.php have you got an example to share of a long url to a prefered shortened version, that would be a good start point. Quote Link to comment https://forums.phpfreaks.com/topic/256116-shorten-url-in-custom-made-cms/#findComment-1312931 Share on other sites More sharing options...
qed-tech Posted January 31, 2012 Author Share Posted January 31, 2012 Oops.. Sorry for being so unclear. What I meant is how I can make an URL like http://www.cannenburgh.nl/index.php?cmd=141&sub_menu_item_id=141&template=1&menu_item_id=50 shorter and more search-engine friendly, for example how can I make it be more like http://www.cannenburgh.nl/index.php/contact Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/256116-shorten-url-in-custom-made-cms/#findComment-1312949 Share on other sites More sharing options...
spiderwell Posted January 31, 2012 Share Posted January 31, 2012 it can be done, but its not a simple fix, you need to probably rewrite a lot of how the system goes from page to page. and implement URL rewriting, but its quite possible that this method could break the current system as its very different. http://www.seoconsultants.com/articles/1000/url-rewriting this might help. I think for a quick fix it might be an idea to say have a page called contact.php and have it pull in content for 'cmd=141&sub_menu_item_id=141&template=1&menu_item_id=50' Quote Link to comment https://forums.phpfreaks.com/topic/256116-shorten-url-in-custom-made-cms/#findComment-1312979 Share on other sites More sharing options...
scootstah Posted January 31, 2012 Share Posted January 31, 2012 You could band-aid it with a lot of .htaccess rewrite rules. Quote Link to comment https://forums.phpfreaks.com/topic/256116-shorten-url-in-custom-made-cms/#findComment-1312992 Share on other sites More sharing options...
qed-tech Posted February 1, 2012 Author Share Posted February 1, 2012 Hmmm. I'm afraid it's too complicated for me. I'll have to wait for our programmer to fix it. Thanks anyway! Quote Link to comment https://forums.phpfreaks.com/topic/256116-shorten-url-in-custom-made-cms/#findComment-1313251 Share on other sites More sharing options...
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.