URL Redirect in Magento
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!