Jump to content

prestashop homepage tuning?


Recommended Posts

Hi All,
My presta-shop homepage has only new arrival/featured product module active and in home page its showing one product

as in the URL:

When we click on the view button, it will take me to the details of the product and from there i can buy it.
And the URL is:

Now I want to get this view page in the home page rather than putting one view button and then going to details of the product.

What I want is:
When somebody will type the URL, it should directly go to
http://localhost/prestashop/product.php?id_product=1 or show the details of the product as I will have only one product in featured products.

Can anybody help me do the setting for this ?

Share this post

Link to post
Share on other sites

If mod_rewrite is enabled on your server, you could accomplish the redirection using an .htaccess file containing a RewriteRule
(place the .htaccess file in the directory where your shop's "homepage" index.php resides)

How to create a RewriteRule, see:


Alternately, you could replace the contents of index.php in your shop's home directory with this:

   header('HTTP/1.1 301 Moved Permanently');
   header('Location: http://'.   $_SERVER['HTTP_HOST'] .dirname($_SERVER['PHP_SELF'])   .'/product.php?id_product=1');

If you do this, bear in mind that whenever a visitor clicks any 'Home' link throughout your shop... they wind up being redirected to the 'product 1' page (might cause visitor confusion)

Share this post

Link to post
Share on other sites

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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More