Ma Publicité Gratuite !

Nous allons faire parler de vous !

 
  • Facebook
  • Twitter
  • Youtube
La communauté d'échanges francophone 22 Décembre 2024 à 09:55:44 *
Bienvenue, Invité. Veuillez vous connecter ou vous inscrire.


Connexion avec identifiant et mot de passe
Nouvelles:
Publicité gratuite !
Cliquer ici
 
 
Accueil Aide Rechercher
Pages: [1]   Bas de page
Envoyer ce fil Imprimer
Auteur Fil de discussion: Magento URL rewrites  (Lu 5920 fois)
0 Membres et 1 Invité sur ce fil de discussion.
GoMage
Redacteurs
Ambassadeur MaPubliciteGratuite.com
***

Karma: +0/-0
Hors ligne Hors ligne

Messages: 22


Voir le profil WWW
« le: 16 Avril 2014 à 11:40:00 »

There is often the necessity to redirect a customer from the site for any reasons.
There are several different ways how to do the redirect to a certain page in Magento.
Here is the example of one of this ways in Magento:
$url=http://magento/register; $this->getResponse()->setRedirect($url);
From the very beginning we make you surprised with one of the ways of such redirects (rewrites), but now we are going to clarify some moments of Magento redirects.
You can use Magento Rewrite Management for creating rewrites for products and categories, and custom rewrites for other pages in your store. And when the redirect is active, any links that point to the previous URL are redirected to a new address. 
Please, pay attention to the following examples which show that all rewrites reference a "Target Path" and "Requested Path":
Example 1

Target Path:   category-1.html
Requested Path:   catalog/category/id/6
Redirect Type:   Permanent 301

Example 2

Target Path:   catalog/category/id/6
Requested Path:   product.html (for an internal page)
http://magentocommerce.com (for an external website)
Redirect Type:   Permanent 301

These examples are described on the Magento official site here:
http://www.magentocommerce.com/knowledge-base/entry/creating-url-rewrites
So, let’s investigate the creation of three redirects types:
Product rewrite;
Catalog rewrite;
Custom rewrite.
How to add a product rewrite:
1.   You should go to your Magento admin panel and select Catalog > URL Rewrite Management.
2.   Click the Add URL Rewrite button at the top right corner.
3.   In the Add New URL Rewrite section, set Create URL Rewrite to "for Product."
4.   Choose the product from the list below and click to open the record.
5.   Click on the Skip Category Selection button scrolling down to the button of the Category Selection.
6.   You should do the following steps in the URL Rewrite section:
a.   Enter the new value for the updated URL in the Request Path field. The Request Path must be unique for each rewrite.
b.   Set Redirect to one of the following:
   Temporary (302)
   Permanent (301)
c.   For your own reference, enter a brief description of the rewrite.
   Then you should click on the Save button.

Congratulations! You have created the product redirect. Let’s investigate the other instructions connected with the Category rewrite and custom rewrite.

How to add a category rewrite:
1.   You should log into your Magento admin panel and select Catalog > URL Rewrite Management.
2.   Click the Add URL Rewrite button at the top right corner.
3.   Set Create URL Rewrite to "for Catalog" in the Add New URL Rewrite section.
4.   You should choose the category that needs the rewrite in the category tree.
5.   You should do the next steps in the URL Rewrite section:

a.   In the Request Path field, enter the new value for the updated URL. The Request Path must be unique for each rewrite.

b.   Set Redirect to one of the following:
2.   Temporary (302)
3.   Permanent (301)
c.   For your own reference, enter a brief description of the rewrite.

6.   Please, click the Save button when you finish the actions.
How to add a custom rewrite:

1.   You should log into your Magento admin panel and select Catalog > URL Rewrite Management.
2.   Click the Add URL Rewrite button at the top right corner.
3.   Set Create URL Rewrite to "Custom" in the Add New URL Rewrite Information section.
4.     You should do the next steps in the URL Rewrite Information section:
a.   Enter the unique identifier of the original URL in the ID Path field. In order to redirect any page in your store, enter the relative path to the page. For example: brand/search/result/brandname
b.   Enter the same original URL in the Request Path field. The Request Path must be unique for each rewrite.
c.   Enter a valid URL for the new destination In the Target Path field. In order to redirect to another CMS page in your store, enter the relative path to the new page, without a leading forward slash. To redirect to a page on another site, enter the fully qualified URL of the new destination. For example:
   new-page (URL Key of target page)
   somewhere/new-page (Relative path to target page, without a leading forward slash)
   http://magentocommerce.com (Fully qualified URL of target page on external website)
d.   Set Redirect to one of the following:
   Temporary (302)
   Permanent (301)
e.   Enter a brief description of the rewrite.
5.   Please, click the Save button when the actions are finished.

The information is taken from the official Magento site:
http://www.magentocommerce.com/knowledge-base/entry/creating-url-rewrites

Also, you can find other useful topics there connected with the rewrites.
If you have any questions or need help, please contact GoMage specialists.
Signaler au modérateur   Journalisée

Les extensions moderne pour la Magento e-commerce plate-forme
Pages: [1]   Haut de page
Envoyer ce fil Imprimer
La communauté d'échanges francophone  |  La communauté d'échange francophone  |  Espace publicitaire  |  Fil de discussion: Magento URL rewrites
 

Sujets en rapport
Titre Démarré par Réponses Vues Dernier message
Navigation avancée pour Magento
Espace publicitaire
GoMage 0 4645 Dernier message 20 Janvier 2012 à 11:51:07
par GoMage
Simple solutions pour la publicité sur Magento boutique en ligne
Espace publicitaire
GoMage 0 5202 Dernier message 20 Janvier 2012 à 13:42:51
par GoMage
Neatly developed Magento Ajax Cart is a way to prosperous eCommerce business
Maroc
GoMage 0 7196 Dernier message 24 Septembre 2013 à 13:33:35
par GoMage
Login Improvement for your Magento stores
Vendée
GoMage 0 9001 Dernier message 26 Novembre 2013 à 13:20:03
par GoMage
Magento import
Espace publicitaire
GoMage 0 4866 Dernier message 30 Janvier 2014 à 14:42:15
par GoMage
Magento Navigation
Espace publicitaire
GoMage 0 5978 Dernier message 18 Février 2014 à 06:39:15
par GoMage
How to install a custom theme in Magento
Espace publicitaire
GoMage 0 5067 Dernier message 07 Mars 2014 à 12:34:36
par GoMage
Boost your Magento store appearance with SEO enhancement
Espace publicitaire
GoMage 0 5229 Dernier message 27 Mars 2014 à 11:56:42
par GoMage
eCommerce innovations in the Magento sphere
Espace sites internet
GoMage 0 5361 Dernier message 17 Juin 2014 à 17:31:07
par GoMage
Open Graph Protocol
Espace sites internet
GoMage 1 6740 Dernier message 02 Septembre 2014 à 16:07:26
par cindy
Aller à:  

Powered by SMF | SMF © 2006-2008, Simple Machines