Jump to content

prestashop homepage tuning?


hara

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:
http://localhost/prestashop/

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:
http://localhost/prestashop/product.php?id_product=1

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 ?

Link to comment
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:
http://www.askapache.com/htaccess/mod_rewrite-tips-and-tricks.html

-=-

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

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


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)

Link to comment
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...