Articles

Various Articles covering Magento 1, Magento 2, PHP and Web Development

Latest article tagged with “Rewrites”

Creating URL Rewrites in Magento 2

Look ma! Without hands!

Here's a quick draft on how to create URL Rewrites in Magento 2:

/**
 * @var \Magento\UrlRewrite\Model\UrlRewriteFactory
 */
protected $urlRewriteFactory;

/**
 * @var int
 */
protected $storeId = 1;

/**
 * Redirects constructor....
Read More