make redirect to new url from the old url Magento - magento

Hi i have a Magento site in which i have a different categories, due to some reason i have to rename one of the categories.
Old URL = www.example.com/wol/schpeege
New URL = www.example.com/wol/schpeegewol
for SEO purposes I need to redirect the user to
New url
when he enters the
Old url
Please suggest me how can i do this?
thanks

... or ... use htaccess rewrite rule.
Go to http://seo-website-designer.com/HtAccess-301-Redirect-Generator#heading-ToolResult for creating rule and then save your .htaccess file on your root folder.

Use magento rewrite managment, here is manual http://www.magentocommerce.com/wiki/modules_reference/english/mage_adminhtml/urlrewrite/index

You can create URL rewrite for your Requirement.
Here is Step :
1> Login to magento admin
2> Catalog -> URL Rewrite Management -> Create New Url

Related

URL rewrites not working and keep changing the URL extension

I cannot get the URL rewrite in Magento to work correctly at all. I'm trying to redirect a category to a CMS page and at first try it works fine. After I refresh, it starts to change the URL extensions to something completely different than what's shown for the category URL. I've tried clearing the cache and reindexing the URL rewrite but that seems to change it again!
And if I do try to change the URL rewrite to this new, random, made up one that's being automatically inputted - it changes it again! I'm so confused here..
Fixing weird URL Rewrites
Sometimes when you make changes to your products, or enable a certain extension, Magento might start to rewrite all your URLs to include a suffix "-1" or some other number. Within the URL Rewrites, Magento differentiates between System URLs and Custom URLs. If the System URLs are broken like this, you should not fix this by adding new Custom URLs.
Instead, open up phpMyAdmin, create a backup of your Magento database, and flush the Magento table core_url_rewrite (so that it becomes totally empty). Immediately afterwards, refresh the Catalog Url Rewrites under Index Management. This will regenerate all System URLs.
You can also try to redirect through the .htaccess.
Redirect 301 /site-URL-to-redirect www.site.com/url-destination
There are two ways to redirect your category page to cms.
Using Magento native URL rewrite managment.
In Magento 1.x go to
admin -> catalog -> url rewrite managment -> add new url
select custom in Create URL Rewrite: drop down and then give your categoy url as request and cms page as target.
Using .htaccess file. Add this line of code into the file .htaccess:
Redirect category-url cms-page-url

URL masking with MAGENTO

Is there any way of url masking with Magento.
For Eg :
Main website :
www.magento.com
another domain :
subdomain.magento.com
Now when i open www.magento.com website is masked/redirect to subdomain.magento.com with all the content of www.magento.com, and in URL it will display subdomain.magento.com.
let me know if this is possible in case of Magento without creating multiplestores.
This works for me :
Setup your URLs as “pointers” – all pointing to your Magento
installation’s root directory
Navigate to your Magento Admin under System > Configuration > Web >
Url Options and select “No” for “Auto-redirect to Base URL”.
That’s it! It should work exactly how you want it to.

Is there a way to change login page URL in Magento?

I want to change the URL for customer login in Magento.
From the URL,
www.mydomain.com/customer/account/login/
To something like this:
www.mydomain.com/login
How can I do this?
I have not tried this method yet but you can achieve this with url rewrite.
Go to url rewrite and add custom url rewrite, give unique id path.
And in request path give www.mydomain.com/login this url and in target path give this url www.mydomain.com/customer/account/login/ magento internally consider target path for its use.
For more Info on url rewrite you can see here http://www.magentocommerce.com/wiki/modules_reference/english/mage_adminhtml/urlrewrite/index
http://blog.beetleweb.com/2012/10/creating-custom-magento-url-rewrites/
1)Login to magento admin panel
2)Goto catalog->URL Rewrite Management
3)In Requestpath give www.mydomain.com/login
4)In Targetpath give www.mydomain.com/customer/account/login/

Magento migration from single store to multistore. Redirects

I have 1 website for now. Its URL is www.test.com, for example.
I want to create second website on the same domain adding store codes to URLs. So my URLs will be
www.test.com/first/
www.test.com/second/
But as I can see all my previous URLs will show 404 on their open. So if I open
www.test.com/product.html
it will show 404. It is not good because I loose my SEO.
How can I create redirects so if user opens
www.test.com/product.html
he will be automatically redirected to default website, like
www.test.com/first/product.html
Shall I have any issues with such redirects? (Like API will not work)
Or is it possible for URL
www.test.com/product.html
to show product from default website, if exists?
Magento has a very good system for SEO.
For Rewrite Management these are the steps:
1.Loginto Admin.
2.Move mouse over Catalog and you will find a drop down.
3 Select URL Rewrite management.
Catalog >> UrlRewrite Management
4.Then click on ADD URL Rewrite Button.
5.Then on next screen select custom from option provided
Create URL Rewrite : Select Custom
Now following important fields and values that should go:
Request Path (Old URL ) Target Path ( New URL ) redirect (Permanent 301).
Note : This approach will be good if you have few products but if you have too many product then some .htaccess rule is recommended.

Magento URL Rewrite by Overriding Model

Is there a Base model which I can rewrite my URLs by overriding that model.
I have Lots of URLs and I need to use redirect them without adding them to category URL rewrite Management
I can do this by overriding Mage_Core_Model_App but unfortunately Magento not allowed to override App model.
Example:
Old URLS : www.old.com/pro/1232
New Url: www.mage.com/my-product.html
I wanted to redirect Old URL to new URL without using URL rewrite Management in Magento.
We've done a similar thing using Apache rewrites.
You should be able to configure the rewrites in whatever web server you use.

Resources