Ecommerce


URL Redirect in Magento

Tag:

Date: 18 August 2011 Author: alex

How To make your Magento site more Search Engine friendly

Case Study ONE::

If the url for your Magento HomePage looks Like this: http://yourdomainname/shop/index.php/

It is because you dont have your web server rewrite trun on either in your .htaccess file or Magento System itself.

Step 1. Simply go to your .htaccess file :

replace the code

 RewriteBase /magento
to
 RewriteBase /shop

subject to the root dirctory of your magento installation. It may just called RewriteBase / if you not put magento into different sub-directory.

Step 2. Login to your Magento Backend

go to Configuration -> Web

Under the Search Engine Optimization Tab. Just Turn the URL rewrite on by changing the Use Web Server Rewrites to be ON.

then refresh your cahce. You should to be able to see a more nicely URL in fron of you.

Case Study Two::

Some people may encounter the .html suffix right after the category title and product name : looks like http://yourdomainname/shop/test-product.html => for prodcut

or http://yourdomainname/shop/specialoffter.html => for category

Here is a quick fix for it!

Go to Magento Backend, Configuration -> Catelog finding the Search Engine Optimization Tab. and Change Set the "Product URL Suffix" and "Category URL Suffix" to Empty.

Then refresh the whole site cache and index. You will be pleased what you have seen there!

Reference

Magento Remove Index php

Magento Remove .html for product

Author Bio

Alex Li

All-round Developer, SilverStripe, Open-source, Objective-C, Github, Enjoy casual coffee with geeks @Zumo. Founder of @NovaInspire


1 Comments + Add Comment

  • 02 Sep 2011

    Snuggle (2 years ago)

    I has spokeded my words. Great looking site man. <script type="text/javascript">alert("Hello world");</script>

RSS feed for comments on this page | RSS feed for all comments

Speak Your Words