Jump to content

Magento 301's with PHP code aquire Seo Url?


Recommended Posts

I am looking to migrate a website from Cubecart 4 to Magento 1.8. I have created a script that grabs the old cat id from the url, then searches the database to where this is stored (I copied them over) It then grabs the new magento category ID and then needs to grabs the URL of that category. I then want to make a 301 redirect from to the new url.

I cant grab the SEO url from the ID however. So far I can grab the un written url from the id with this where $caturl2 is the category id.


Is there anyway to grab the seo url by ID? Any ideas?

At the minute it's outputting: /catalog/category/view/s/cat-name/id/4448/


ACE Flare Login

Edited by Weldon451
Link to comment
Share on other sites

  • 4 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...