{"id":14130,"date":"2017-08-29T16:05:32","date_gmt":"2017-08-29T13:05:32","guid":{"rendered":"https:\/\/belvg.com\/blog\/?p=14130"},"modified":"2025-02-11T10:43:15","modified_gmt":"2025-02-11T08:43:15","slug":"how-to-validate-url-rewrites-in-magento-1-and-magento-2-magento-certificaton-exam","status":"publish","type":"post","link":"https:\/\/belvg.com\/blog\/how-to-validate-url-rewrites-in-magento-1-and-magento-2-magento-certificaton-exam.html","title":{"rendered":"How To Validate URL Rewrites in Magento 1 and Magento 2 (Magento Certificaton Exam)"},"content":{"rendered":"<h2><strong>Magento 1<\/strong><\/h2>\n<p><span style=\"font-weight: 400;\">Request Flow<\/span><\/p>\n<ul>\n<li><span style=\"font-weight: 400;\">app\/Mage.php (Mage::app()-&gt;run())<\/span><\/li>\n<li><span style=\"font-weight: 400;\">app\/code\/core\/Mage\/Core\/Model\/App.php<\/span><\/li>\n<li><span style=\"font-weight: 400;\">Init and Dispatch controller $this-&gt;getFrontController()-&gt;dispatch();<\/span><\/li>\n<li><span style=\"font-weight: 400;\">app\/code\/core\/Mage\/Core\/Controller\/Varien\/Front.php<!--more--><\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">When the front controller is dispatched, first off, there&#8217;s a check whether Url is the link to product or category. Everything starts from Mage_Core_Controller_Varien_Front-&gt;dispatch();<\/span><\/p>\n<pre class=\"lang:php decode:true \">class Mage_Core_Controller_Varien_Front extends Varien_Object\r\n{\r\n\/\/...\r\npublic function dispatch()\r\n{\r\n&#160;&#160;&#160; $request = $this-&gt;getRequest();\r\n&#160;&#160;&#160; \/\/ If pre-configured, check equality of base URL and requested URL\r\n&#160;&#160;&#160; $this-&gt;_checkBaseUrl($request);\r\n&#160;&#160;&#160;&#160;&#160;&#160;&#160;$request-&gt;setPathInfo()-&gt;setDispatched(false);\r\n&#160;&#160;&#160;&#160;&#160;&#160;&#160;$this-&gt;_getRequestRewriteController()-&gt;rewrite();\r\n&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; \/\/...\r\n}\r\n\/\/...\r\n}\r\n\/\/We&#8217;re interested in the line: $this-&gt;_getRequestRewriteController()-&gt;rewrite();\r\nclass Mage_Core_Model_Url_Rewrite_Request\r\n{\r\n...\r\npublic function rewrite()\r\n{\r\n&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ...\r\n&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $this-&gt;_rewriteDb();\r\n&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ...\r\n}\r\n}<\/pre>\n<p><span style=\"font-weight: 400;\">Call the rewrite method in <em>Mage_Core_Model_Url_Rewrite_Request<\/em> &#160;in which the <em>_rewriteDb()<\/em> is called, then the method <em>loadByRequestPath<\/em> is called. Load rewrite information for request If <em>$path<\/em> is array &#8212; we must load possible records and choose one matching earlier record in array.<\/span><\/p>\n<pre class=\"lang:php decode:true\">class Mage_Core_Model_Url_Rewrite_Request\r\n{\r\n...\r\npublic function _rewriteDb()\r\n{\r\n&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ...\r\n&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $this-&gt;_rewrite-&gt;loadByRequestPath($requestCases);\r\n&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ...\r\n}\r\n}<\/pre>\n<p><span style=\"font-weight: 400;\">Request in the database in the method<\/span><span style=\"font-weight: 400;\"><em> loadByRequestPath<\/em>:<\/span><\/p>\n<pre class=\"lang:php decode:true \">class Mage_Core_Model_Resource_Url_Rewrite extends Mage_Core_Model_Resource_Db_Abstract\r\n{\r\n\t...\r\npublic function loadByRequestPath(Mage_Core_Model_Url_Rewrite $object, $path)\r\n\t{\r\n    \t...\r\n    \t$select  = $adapter-&gt;select()\r\n        \t-&gt;from($this-&gt;getMainTable())\r\n        \t-&gt;where('request_path IN (:' . implode(', :', array_flip($pathBind)) . ')')\r\n            -&gt;where('store_id IN(?)', array(Mage_Core_Model_App::ADMIN_STORE_ID, (int)$object-&gt;getStoreId()));\r\n    \t...\r\n\t}\r\n \t...\r\n}\r\n<\/pre>\n<p><span style=\"font-weight: 400;\">In case there&#8217;re Url rewrites in the base, set the redirect header:<\/span><\/p>\n<pre class=\"lang:php decode:true \">class Mage_Core_Model_Url_Rewrite_Request\r\n{\r\n...\r\npublic function _rewriteDb()\r\n\t{\r\n           \t...\r\n           \t\t$targetUrl = $currentStore-&gt;getBaseUrl() . $this-&gt;_rewrite-&gt;getRequestPath();\r\n            $this-&gt;_sendRedirectHeaders($targetUrl, true);\r\n           \t...\r\n\t}\r\n}\r\n<\/pre>\n<h2><strong>Magento 2<\/strong><\/h2>\n<p><span style=\"font-weight: 400;\">In Magento 2 we have a separate router for processing URL rewrites, that&#8217;s why except rewrite mechanism, it&#8217;s necessary to understand Routing Mechanism. Each request is sent through the series of routers.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Flow of default routers:<\/span><br \/>\n<span style=\"font-weight: 400;\">Base Router &#8594; CMS Router &#8594; UrlRewrite Router &#8594; Default Router<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Request Flow<\/span><br \/>\n<span style=\"font-weight: 400;\">index.php -&gt; Bootstrap::create() -&gt; create ObjectManagerFactory -&gt; App::launch() -&gt; FrontController::dispatch() -&gt; router::match() -&gt; Controller::execute()<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Routers loop in FrontController::dispatch()<\/span><\/p>\n<p><strong>1.&#160;Base Router<\/strong><br \/>\n<span style=\"font-weight: 400;\">Magento\\Core\\App\\Router\\Base<\/span><br \/>\n<span style=\"font-weight: 400;\">At base router standard Magento URL (front_name\/action_path\/action\/param_1\/etc_params\/) is matched.<\/span><\/p>\n<p><strong>2. CMS Router<\/strong><br \/>\n<span style=\"font-weight: 400;\">CMS Router is used for handling the CMS Pages and it also sets the module name to &#8220;cms&#8221;, controller name to &#8220;page&#8221; and action name to &#8220;view&#8221; so that makes the full path to execute is \/vendor\/magento\/module-cms\/Controller\/Page\/View.php controller<\/span><\/p>\n<p><strong>3. URL Rewrite Router<\/strong><br \/>\n<span style=\"font-weight: 400;\">In Magento 2 UrlRewrite has its own router Magento\\UrlRewrite\\Controller\\Router. using Url Finder to get URL rewrite that matches URL from the database:<\/span><\/p>\n<pre class=\"lang:php decode:true\">public function match(\\Magento\\Framework\\App\\RequestInterface $request)\r\n{\r\n&#8230;\r\n&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $rewrite = $this-&gt;urlFinder-&gt;findOneByData(\r\n&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;[\r\n&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;UrlRewrite::ENTITY_TYPE =&gt; $oldRewrite-&gt;getEntityType(),\r\n&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;UrlRewrite::ENTITY_ID =&gt; $oldRewrite-&gt;getEntityId(),\r\n&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;UrlRewrite::STORE_ID =&gt; $this-&gt;storeManager-&gt;getStore()-&gt;getId(),\r\n&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;UrlRewrite::IS_AUTOGENERATED =&gt; 1,\r\n&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;]\r\n&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;);\r\n&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if ($rewrite &amp;&amp; $rewrite-&gt;getRequestPath() !== $oldRewrite-&gt;getRequestPath()) {\r\n&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;return $this-&gt;redirect($request, $rewrite-&gt;getRequestPath(), OptionProvider::TEMPORARY);\r\n&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }\r\n&#8230;\r\n}<\/pre>\n<p><span style=\"font-weight: 400;\">In case if Url rewrite is found, it is redirected to requertPath found.<\/span><\/p>\n<p><strong>4.&#160;Default Router (404 Router)<\/strong><br \/>\n<span style=\"font-weight: 400;\">Magento\\Framework\\App\\Router\\DefaultRouter<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The last in the routers loop. It&#8217;s used when every other router doesn&#8217;t match. In Magento 2 we can create a custom handle for &#8220;Not Found&#8221; page to display custom content.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In such a manner, if Url put by the user is Url rewrite, so<em> FrontController::dispatch()<\/em> doesn&#8217;t find Url in Base route firstly, then it doesn&#8217;t find in cms route and when it gets URL Rewrite, Router calls the method Magento\\UrlRewrite\\Controller\\Router::match() and using Url Finder to get URL rewrite that matches URL from the database and is redirected to request_path from the database received in url_rewrite table.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">All in all, having worked with Magento 1 and Magento 2, you can see the difference in Url rewrites. In fact, it doesn&#8217;t look so profound, but there are some minor things that need consideration. Hope the article helps to cope with the issue. <\/span><\/p>\n","protected":false},"excerpt":{"rendered":"Magento 1 Request Flow app\/Mage.php (Mage::app()-&gt;run()) app\/code\/core\/Mage\/Core\/Model\/App.php Init and Dispatch controller $this-&gt;getFrontController()-&gt;dispatch(); app\/code\/core\/Mage\/Core\/Controller\/Varien\/Front.php","protected":false},"author":58,"featured_media":14138,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"image","meta":{"_acf_changed":false,"footnotes":""},"categories":[35,14,471],"tags":[],"class_list":["post-14130","post","type-post","status-publish","format-image","has-post-thumbnail","hentry","category-certification","category-magento","category-magento-developer","post_format-image"],"acf":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.4 - aioseo.com -->\n\t<meta name=\"description\" content=\"Here you&#039;ll find all the necessary information about URL Rewrites validation in M1 and M2, that will help you to pass Magento Certification Exams successfully.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Aleksander Kutseika\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/belvg.com\/blog\/how-to-validate-url-rewrites-in-magento-1-and-magento-2-magento-certificaton-exam.html\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.4\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-validate-url-rewrites-in-magento-1-and-magento-2-magento-certificaton-exam.html#article\",\"name\":\"How To Validate URL Rewrites in Magento 1 and Magento 2 | BelVG Blog\",\"headline\":\"How To Validate URL Rewrites in Magento 1 and Magento 2 (Magento Certificaton Exam)\",\"author\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/aleksander-kutseika#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/08\\\/How-To-Validate-URL-Rewrites-in-Magento-1-and-Magento-2.jpg\",\"width\":770,\"height\":290,\"caption\":\"How To Validate URL Rewrites in Magento 1 and Magento 2\"},\"datePublished\":\"2017-08-29T16:05:32+02:00\",\"dateModified\":\"2025-02-11T10:43:15+02:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-validate-url-rewrites-in-magento-1-and-magento-2-magento-certificaton-exam.html#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-validate-url-rewrites-in-magento-1-and-magento-2-magento-certificaton-exam.html#webpage\"},\"articleSection\":\"Certification, Magento, Magento Developer, Image\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-validate-url-rewrites-in-magento-1-and-magento-2-magento-certificaton-exam.html#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/magento#listItem\",\"name\":\"Magento\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/magento#listItem\",\"position\":2,\"name\":\"Magento\",\"item\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/magento\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-validate-url-rewrites-in-magento-1-and-magento-2-magento-certificaton-exam.html#listItem\",\"name\":\"How To Validate URL Rewrites in Magento 1 and Magento 2 (Magento Certificaton Exam)\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-validate-url-rewrites-in-magento-1-and-magento-2-magento-certificaton-exam.html#listItem\",\"position\":3,\"name\":\"How To Validate URL Rewrites in Magento 1 and Magento 2 (Magento Certificaton Exam)\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/magento#listItem\",\"name\":\"Magento\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\",\"name\":\"BelVG Blog\",\"description\":\"Magento and Prestashop articles\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/aleksander-kutseika#author\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/aleksander-kutseika\",\"name\":\"Aleksander Kutseika\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-validate-url-rewrites-in-magento-1-and-magento-2-magento-certificaton-exam.html#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/20dcba617ca05952a14d36e3f30fc6a632094549decebf7a03ba790095042cd3?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Aleksander Kutseika\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-validate-url-rewrites-in-magento-1-and-magento-2-magento-certificaton-exam.html#webpage\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-validate-url-rewrites-in-magento-1-and-magento-2-magento-certificaton-exam.html\",\"name\":\"How To Validate URL Rewrites in Magento 1 and Magento 2 | BelVG Blog\",\"description\":\"Here you'll find all the necessary information about URL Rewrites validation in M1 and M2, that will help you to pass Magento Certification Exams successfully.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-validate-url-rewrites-in-magento-1-and-magento-2-magento-certificaton-exam.html#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/aleksander-kutseika#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/aleksander-kutseika#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/08\\\/How-To-Validate-URL-Rewrites-in-Magento-1-and-Magento-2.jpg\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-validate-url-rewrites-in-magento-1-and-magento-2-magento-certificaton-exam.html\\\/#mainImage\",\"width\":770,\"height\":290,\"caption\":\"How To Validate URL Rewrites in Magento 1 and Magento 2\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-validate-url-rewrites-in-magento-1-and-magento-2-magento-certificaton-exam.html#mainImage\"},\"datePublished\":\"2017-08-29T16:05:32+02:00\",\"dateModified\":\"2025-02-11T10:43:15+02:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\",\"name\":\"BelVG Blog\",\"description\":\"Magento and Prestashop articles\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"How To Validate URL Rewrites in Magento 1 and Magento 2 | BelVG Blog","description":"Here you'll find all the necessary information about URL Rewrites validation in M1 and M2, that will help you to pass Magento Certification Exams successfully.","canonical_url":"https:\/\/belvg.com\/blog\/how-to-validate-url-rewrites-in-magento-1-and-magento-2-magento-certificaton-exam.html","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/belvg.com\/blog\/how-to-validate-url-rewrites-in-magento-1-and-magento-2-magento-certificaton-exam.html#article","name":"How To Validate URL Rewrites in Magento 1 and Magento 2 | BelVG Blog","headline":"How To Validate URL Rewrites in Magento 1 and Magento 2 (Magento Certificaton Exam)","author":{"@id":"https:\/\/belvg.com\/blog\/author\/aleksander-kutseika#author"},"publisher":{"@id":"https:\/\/belvg.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2017\/08\/How-To-Validate-URL-Rewrites-in-Magento-1-and-Magento-2.jpg","width":770,"height":290,"caption":"How To Validate URL Rewrites in Magento 1 and Magento 2"},"datePublished":"2017-08-29T16:05:32+02:00","dateModified":"2025-02-11T10:43:15+02:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/belvg.com\/blog\/how-to-validate-url-rewrites-in-magento-1-and-magento-2-magento-certificaton-exam.html#webpage"},"isPartOf":{"@id":"https:\/\/belvg.com\/blog\/how-to-validate-url-rewrites-in-magento-1-and-magento-2-magento-certificaton-exam.html#webpage"},"articleSection":"Certification, Magento, Magento Developer, Image"},{"@type":"BreadcrumbList","@id":"https:\/\/belvg.com\/blog\/how-to-validate-url-rewrites-in-magento-1-and-magento-2-magento-certificaton-exam.html#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/#listItem","position":1,"name":"Home","item":"https:\/\/belvg.com\/blog\/","nextItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/magento#listItem","name":"Magento"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/magento#listItem","position":2,"name":"Magento","item":"https:\/\/belvg.com\/blog\/category\/magento","nextItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/how-to-validate-url-rewrites-in-magento-1-and-magento-2-magento-certificaton-exam.html#listItem","name":"How To Validate URL Rewrites in Magento 1 and Magento 2 (Magento Certificaton Exam)"},"previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/how-to-validate-url-rewrites-in-magento-1-and-magento-2-magento-certificaton-exam.html#listItem","position":3,"name":"How To Validate URL Rewrites in Magento 1 and Magento 2 (Magento Certificaton Exam)","previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/magento#listItem","name":"Magento"}}]},{"@type":"Organization","@id":"https:\/\/belvg.com\/blog\/#organization","name":"BelVG Blog","description":"Magento and Prestashop articles","url":"https:\/\/belvg.com\/blog\/"},{"@type":"Person","@id":"https:\/\/belvg.com\/blog\/author\/aleksander-kutseika#author","url":"https:\/\/belvg.com\/blog\/author\/aleksander-kutseika","name":"Aleksander Kutseika","image":{"@type":"ImageObject","@id":"https:\/\/belvg.com\/blog\/how-to-validate-url-rewrites-in-magento-1-and-magento-2-magento-certificaton-exam.html#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/20dcba617ca05952a14d36e3f30fc6a632094549decebf7a03ba790095042cd3?s=96&d=mm&r=g","width":96,"height":96,"caption":"Aleksander Kutseika"}},{"@type":"WebPage","@id":"https:\/\/belvg.com\/blog\/how-to-validate-url-rewrites-in-magento-1-and-magento-2-magento-certificaton-exam.html#webpage","url":"https:\/\/belvg.com\/blog\/how-to-validate-url-rewrites-in-magento-1-and-magento-2-magento-certificaton-exam.html","name":"How To Validate URL Rewrites in Magento 1 and Magento 2 | BelVG Blog","description":"Here you'll find all the necessary information about URL Rewrites validation in M1 and M2, that will help you to pass Magento Certification Exams successfully.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/belvg.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/belvg.com\/blog\/how-to-validate-url-rewrites-in-magento-1-and-magento-2-magento-certificaton-exam.html#breadcrumblist"},"author":{"@id":"https:\/\/belvg.com\/blog\/author\/aleksander-kutseika#author"},"creator":{"@id":"https:\/\/belvg.com\/blog\/author\/aleksander-kutseika#author"},"image":{"@type":"ImageObject","url":"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2017\/08\/How-To-Validate-URL-Rewrites-in-Magento-1-and-Magento-2.jpg","@id":"https:\/\/belvg.com\/blog\/how-to-validate-url-rewrites-in-magento-1-and-magento-2-magento-certificaton-exam.html\/#mainImage","width":770,"height":290,"caption":"How To Validate URL Rewrites in Magento 1 and Magento 2"},"primaryImageOfPage":{"@id":"https:\/\/belvg.com\/blog\/how-to-validate-url-rewrites-in-magento-1-and-magento-2-magento-certificaton-exam.html#mainImage"},"datePublished":"2017-08-29T16:05:32+02:00","dateModified":"2025-02-11T10:43:15+02:00"},{"@type":"WebSite","@id":"https:\/\/belvg.com\/blog\/#website","url":"https:\/\/belvg.com\/blog\/","name":"BelVG Blog","description":"Magento and Prestashop articles","inLanguage":"en-US","publisher":{"@id":"https:\/\/belvg.com\/blog\/#organization"}}]}},"aioseo_meta_data":{"post_id":"14130","title":"How To Validate URL Rewrites in Magento 1 and Magento 2 | #site_title","description":"Here you'll find all the necessary information about URL Rewrites validation in M1 and M2, that will help you to pass Magento Certification Exams successfully.","keywords":null,"keyphrases":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_image_url":null,"twitter_title":null,"twitter_description":null,"schema_type":"default","schema_type_options":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null,"created":"2026-11-03 18:37:16","updated":"2026-11-03 18:37:16"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/belvg.com\/blog\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/belvg.com\/blog\/category\/magento\" title=\"Magento\">Magento<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHow To Validate URL Rewrites in Magento 1 and Magento 2 (Magento Certificaton Exam)\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/belvg.com\/blog\/"},{"label":"Magento","link":"https:\/\/belvg.com\/blog\/category\/magento"},{"label":"How To Validate URL Rewrites in Magento 1 and Magento 2 (Magento Certificaton Exam)","link":"https:\/\/belvg.com\/blog\/how-to-validate-url-rewrites-in-magento-1-and-magento-2-magento-certificaton-exam.html"}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/14130","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/users\/58"}],"replies":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/comments?post=14130"}],"version-history":[{"count":4,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/14130\/revisions"}],"predecessor-version":[{"id":28763,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/14130\/revisions\/28763"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media\/14138"}],"wp:attachment":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media?parent=14130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/categories?post=14130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/tags?post=14130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}