Try the Demo

Magento Forum

   
How do I redirect index.php to an specific product page? 
 
morfina
Jr. Member
 
Total Posts:  5
Joined:  2012-07-01
 

Hello! I have been looking for this answer for days and It seems that nobody has had the same problem before.

I don’t think it would be something that silly to do or that difficult (maybe it is I dont know!!)

The thing is that at the moment we just have a product in our shop and therefore I want people to access directly to my product page, kind of a landing page with everything there.. So the easiest way to do that, or that is what I tought, is to redirect index to that specific product page. Once we have more products I would revert the situation as it was before.

If you have any suggestions of how can achieve that in some other way I would be more than happy to read them!

Well thank you in advance!

Isa.

 
Magento Community Magento Community
Magento Community
Magento Community
 
easypdfinvoice
Sr. Member
 
Avatar
Total Posts:  115
Joined:  2012-09-13
 

Edit your Home page static page.
add a javascript to redirect to your product page

setLocation('http://yourwebsite.com/your_product_page.html');

 Signature 

Easy PDF Invoice
Make your website to higher level!
DOWNLOAD FREE

Features:
- Allow you add new invoice template by upload your own HTML template
- Multiple PDF layout, you can have different PDF layout for each store and each customer group
- Allow to attach order pdf in email
- Multiple Currency
- Multiple Language
- Compatible CE 1.4.x->1.7.x, EE 1.7.x->1.12.x
...

 
Magento Community Magento Community
Magento Community
Magento Community
 
MagikMahesh
Member
 
Total Posts:  35
Joined:  2012-04-10
 

I think you should create/edit home page in admin panel
and display random/most viewed/best sellers on that page.
blog.magikcommerce.com/how-to-show-most-viewed-best-selling-products-in-magento-store/

this link gives you a solution to show most viewed/best selling products

 Signature 

Mahesh Kajale | Magikcommerce

Find us at magikcommerce
Follow us twitter.com/magikcommerce
...................................................................................
Use coupon code “MAGIK2012” to get a
5% discount on all our Themes & Extensions.

 
Magento Community Magento Community
Magento Community
Magento Community
 
morfina
Jr. Member
 
Total Posts:  5
Joined:  2012-07-01
 

Thank you easypdfinvoice, I have try the javascript solution inserting it in index.php. It won’t work as it enters in a “loop of redirections” but it does go to the new url. I am guessing that this is because I have inserted the code in the index.php and It needs to be somewhere else but I don’t really know where…

You talked about inserting it in the home page static page but I don’t really know how to get there.

I have put the following code:

<script type="text/javascript">
    
[removed].replace("mysiteurl");   
</script>

Thanx.

 
Magento Community Magento Community
Magento Community
Magento Community
 
easypdfinvoice
Sr. Member
 
Avatar
Total Posts:  115
Joined:  2012-09-13
 

Do not add the script to index.php file grin

From magento backend
Cms->Pages
You will see your homepage listed there. edit your home page. then you can add the script to the content tab (make sure you hide the editor)

 Signature 

Easy PDF Invoice
Make your website to higher level!
DOWNLOAD FREE

Features:
- Allow you add new invoice template by upload your own HTML template
- Multiple PDF layout, you can have different PDF layout for each store and each customer group
- Allow to attach order pdf in email
- Multiple Currency
- Multiple Language
- Compatible CE 1.4.x->1.7.x, EE 1.7.x->1.12.x
...

 
Magento Community Magento Community
Magento Community
Magento Community
 
morfina
Jr. Member
 
Total Posts:  5
Joined:  2012-07-01
 

Thank you easypdfinvoice! Success! I am a bit noovy on magento as you can see. (I am getting better… rasberry thanx to the forum)

Well thank you very much, I own you a pizza!

Thanx MagikMahesh for your suggestion too, we can share the pizza with you :D

mwah!

isa.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top