Jump to content

Using Smartblog as a starting page - help with URL please !


Recommended Posts

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

  • 1 month later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...