Proze Posted December 19, 2014 Share Posted December 19, 2014 Hi, first of all english is not my native language, so i am having a hard time to come up with a title to describe my problem. I am using Smartblog for adding the blog features to prestashop, since my client wants the blog with his e-shop. Everything is working fine, but he also wants his eshop to have the blog as a starting page. I managed to acomplish this by overriding IndexController.php and adding line: public function init(){ Tools::redirect('index.php?fc=module&module=smartblog&controller=category'); } It is working, the only problem is that i would like to get rid of this insanely long not-friendly url. So from http://www.myshop.com/index.php?fc=module&module=smartblog&controller=category i would like to have the blog as a starting page but just with url http://www.myshop.com/ or at least http://www.myshop.com/blog Anyway how to do this ? Easy way ? .) I am more like a designer, coder. So php, and server things are big mystery to me mostly. Thanks in advance for answers, or at least pointing me to some resources that would help me to accomplish this. Link to comment Share on other sites More sharing options...
sandipchandela Posted January 22, 2015 Share Posted January 22, 2015 Have you used Tools::redirectLink() ?? And put entry in admin panel -> preferences -> SEO and urls. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now