ALEXCNX Posted September 4, 2013 Share Posted September 4, 2013 Hello,I have added a CMS link to the footer.tpl with the following code: <a href="{$link->getCMSLink('6','customer-service')|replace:'/6':''}" class="homeinfolink">{6 s='Customer Service'}</a> The link shows as http://MYWEBSITE/6/customer-service.phpI've tried and remove the page ID from the link with the following code (so that it just shows http://MYWEBSITE/customer-service.php) but the link now is broken. <a href="{$link->getCMSLink('6','customer-service')|replace:'/6':''}" class="homeinfolink">{6 s='Customer Service'}</a> Does anyone know what's wrong? Thanks,Alex Link to comment Share on other sites More sharing options...
vekia Posted September 4, 2013 Share Posted September 4, 2013 id numbers are necessary, if you don't want to use ID numbers you will need to create rewrite rules in .htaccess file 1 Link to comment Share on other sites More sharing options...
nadie Posted September 4, 2013 Share Posted September 4, 2013 If you want to access the links in the "CMS" without the id in the url of the browser, you have this contribution free: http://www.prestashop.com/forums/topic/204935-override-friendly-urls-without-id-number-for-v15/ Sorry for my English 1 Link to comment Share on other sites More sharing options...
ALEXCNX Posted September 4, 2013 Author Share Posted September 4, 2013 Thank you both. I went with 301 redirect in .htaccess. Link to comment Share on other sites More sharing options...
vekia Posted September 4, 2013 Share Posted September 4, 2013 nice, i think that this is the best solution (no core changes, only little .htaccess entries) im going to mark this thread as [solved] if you will have any questions related to this case - feel free to continue discussion here best regards Link to comment Share on other sites More sharing options...
khaledsaied Posted December 13, 2013 Share Posted December 13, 2013 Thank you both. I went with 301 redirect in .htaccess. Can you please share with us what you wrote in the .htaccess file? Thanks Link to comment Share on other sites More sharing options...
Recommended Posts