<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Magento Expert</title>
	<atom:link href="https://www.the-mage-expert.com/tag/url/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.the-mage-expert.com</link>
	<description>Your Magento Commerce Expert</description>
	<lastBuildDate>Thu, 05 Nov 2026 21:47:58 +0000</lastBuildDate>
	<language>de-DE</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.8.6</generator>
	<item>
		<title>Finding Product URL Rewrites with SQL</title>
		<link>https://www.the-mage-expert.com/3246/finding-product-url-rewrites-with-sql/</link>
		<comments>https://www.the-mage-expert.com/3246/finding-product-url-rewrites-with-sql/#comments</comments>
		<pubDate>Mon, 19 Oct 2026 19:55:22 +0000</pubDate>
		<dc:creator><![CDATA[Mex]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[Magento 2]]></category>
		<category><![CDATA[Rewrites]]></category>
		<category><![CDATA[url]]></category>

		<guid isPermaLink="false">https://www.the-mage-expert.com/?p=3246</guid>
		<description><![CDATA[When product URLs behave unexpectedly, a direct look at Magento&#8217;s url_rewritetable can be useful. It stores public-facing paths, internal targets and redirects for product URLs. Use the following query to display URL rewrites for a specific SKU: [crayon-6af33ffb7cfd9/] request_path contains&#8230;]]></description>
				<content:encoded><![CDATA[<p>When product URLs behave unexpectedly, a direct look at Magento&#8217;s <strong>url_rewrite</strong>table can be useful. It stores public-facing paths, internal targets and redirects for product URLs.</p>
<p>Use the following query to display URL rewrites for a specific SKU:</p><pre class="crayon-plain-tag">SELECT
    p.sku,
    u.store_id,
    s.code AS store_code,
    s.name AS store_name,
    u.request_path,
    u.target_path,
    u.redirect_type
FROM url_rewrite AS u
JOIN catalog_product_entity AS p
    ON u.entity_id = p.entity_id
LEFT JOIN store AS s
    ON s.store_id = u.store_id
WHERE u.entity_type = 'product'
  AND p.sku = 'MEINE-SKU'
ORDER BY u.store_id, u.request_path;</pre><p><strong>request_path</strong> contains the URL visible to customers, while <strong>target_path</strong> points to Magento&#8217;s internal target. The field <strong>store_id</strong> bzw. <strong>store_name</strong> identifies which store view each rewrite belongs to.</p>
<p>Several entries for one product are not necessarily duplicates or errors. Different <strong>store_id</strong> values usually mean Magento maintains separate rewrites for different store views.</p>
<p>Also useful is <strong>redirect_type</strong>. The value <strong>0</strong> means a normal rewrite without a redirect, <strong>301</strong> and <strong>302</strong> indicate permanent and temporary redirects respectively.</p>
<p>After changing URL keys, migrating or importing data, this query helps you see which rewrites Magento actually stores for a product.</p>]]></content:encoded>
			<wfw:commentRss>https://www.the-mage-expert.com/3246/finding-product-url-rewrites-with-sql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting the current URL in a template</title>
		<link>https://www.the-mage-expert.com/1559/getting-the-current-url-in-a-template/</link>
		<comments>https://www.the-mage-expert.com/1559/getting-the-current-url-in-a-template/#comments</comments>
		<pubDate>Tue, 09 Jul 2019 07:16:44 +0000</pubDate>
		<dc:creator><![CDATA[Mex]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[Magento 2]]></category>
		<category><![CDATA[url]]></category>

		<guid isPermaLink="false">https://www.the-mage-expert.com/?p=1559</guid>
		<description><![CDATA[The following code returns the current URL in a Magento 2 template (phtml): [crayon-6af33ffb86d25/]]]></description>
				<content:encoded><![CDATA[<p>The following code returns the current URL in a Magento 2 template (phtml):</p><pre class="crayon-plain-tag">$currentUrl = $this-&gt;getUrl('*/*/*', ['_current' =&gt; true, '_use_rewrite' =&gt; true]);</pre><p></p>]]></content:encoded>
			<wfw:commentRss>https://www.the-mage-expert.com/1559/getting-the-current-url-in-a-template/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reindex URL rewrites</title>
		<link>https://www.the-mage-expert.com/1161/magento2-reindex-url-rewrites/</link>
		<comments>https://www.the-mage-expert.com/1161/magento2-reindex-url-rewrites/#comments</comments>
		<pubDate>Fri, 29 Jun 2018 06:54:29 +0000</pubDate>
		<dc:creator><![CDATA[]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[Magento 2]]></category>
		<category><![CDATA[url]]></category>

		<guid isPermaLink="false">https://www.the-mage-expert.com/?p=1161</guid>
		<description><![CDATA[The URL rewrites of Magento 2 will not be reindexed when rebuilding the index via command line. I recommend using https://github.com/olegkoval/magento2-regenerate_url_rewrites to include the reindex of URL rewrites on the shell. This Magento 2 extensions allows for reindexing all URL&#8230;]]></description>
				<content:encoded><![CDATA[<p>The URL rewrites of Magento 2 will not be reindexed when rebuilding the index via command line. I recommend using <a href="https://github.com/olegkoval/magento2-regenerate_url_rewrites" target="_blank">https://github.com/olegkoval/magento2-regenerate_url_rewrites</a> to include the reindex of URL rewrites on the shell. This Magento 2 extensions allows for reindexing all URL rewrites.</p>
<p>After installation, run these 2 commands:</p>
<pre lang="bash">
php bin/magento cache:flush
php bin/magento cache:clean
</pre>
<p>Now just reindex as usual, the rewrites will be included.</p>]]></content:encoded>
			<wfw:commentRss>https://www.the-mage-expert.com/1161/magento2-reindex-url-rewrites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reindexing URL rewrites</title>
		<link>https://www.the-mage-expert.com/1419/reindexing-url-rewrites/</link>
		<comments>https://www.the-mage-expert.com/1419/reindexing-url-rewrites/#comments</comments>
		<pubDate>Wed, 02 May 2018 08:33:52 +0000</pubDate>
		<dc:creator><![CDATA[Mex]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[Magento 2]]></category>
		<category><![CDATA[url]]></category>

		<guid isPermaLink="false">https://www.the-mage-expert.com/?p=1419</guid>
		<description><![CDATA[Magento 2 URL rewrites are not updated simply by rebuilding the indexes. If you want to rebuild them from the command line, I recommend using https://github.com/olegkoval/magento2-regenerate_url_rewrites. This extension lets you regenerate all Magento 2 URL rewrites from the shell. Afterwards,&#8230;]]></description>
				<content:encoded><![CDATA[<p>Magento 2 URL rewrites are not updated simply by rebuilding the indexes. If you want to rebuild them from the command line, I recommend using <a href="https://github.com/olegkoval/magento2-regenerate_url_rewrites" target="_blank">https://github.com/olegkoval/magento2-regenerate_url_rewrites</a>. This extension lets you regenerate all Magento 2 URL rewrites from the shell.</p>
<p>Afterwards, run these two commands:</p><pre class="crayon-plain-tag">php bin/magento cache:flush
php bin/magento cache:clean</pre><p></p>]]></content:encoded>
			<wfw:commentRss>https://www.the-mage-expert.com/1419/reindexing-url-rewrites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Removing slash at the end of a URL</title>
		<link>https://www.the-mage-expert.com/486/magento-removing-slash-end-of-url/</link>
		<comments>https://www.the-mage-expert.com/486/magento-removing-slash-end-of-url/#comments</comments>
		<pubDate>Fri, 01 Nov 2013 10:26:53 +0000</pubDate>
		<dc:creator><![CDATA[Mex]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[url]]></category>

		<guid isPermaLink="false">https://www.the-mage-expert.com/?p=486</guid>
		<description><![CDATA[Open your .htaccess file in the Magento root directory and add those lines: [crayon-6af33ffb87ce3/]]]></description>
				<content:encoded><![CDATA[<p>Open your .htaccess file in the Magento root directory and add those lines:</p>
<p></p><pre class="crayon-plain-tag">RewriteCond %{request_method} ^GET$
RewriteCond %{REQUEST_URI} ^(.+)/$
RewriteRule ^(.+)$ %1 [L,R=301]</pre><p></p>]]></content:encoded>
			<wfw:commentRss>https://www.the-mage-expert.com/486/magento-removing-slash-end-of-url/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting URL parameters</title>
		<link>https://www.the-mage-expert.com/385/magento-getting-url-parameters/</link>
		<comments>https://www.the-mage-expert.com/385/magento-getting-url-parameters/#comments</comments>
		<pubDate>Thu, 25 Jul 2013 14:38:15 +0000</pubDate>
		<dc:creator><![CDATA[Mex]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[url]]></category>

		<guid isPermaLink="false">https://www.the-mage-expert.com/?p=385</guid>
		<description><![CDATA[To get a Magento URL parameter, use the following code: [crayon-6af33ffb87f85/]]]></description>
				<content:encoded><![CDATA[<p>To get a Magento URL parameter, use the following code:</p>
<p></p><pre class="crayon-plain-tag">// URL: http://localhost/project/index.php/admin/sales_order/index/id/123
$id = Mage::app()-&gt;getRequest()-&gt;getParam('id');</pre><p></p>]]></content:encoded>
			<wfw:commentRss>https://www.the-mage-expert.com/385/magento-getting-url-parameters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting a category URL using the category id</title>
		<link>https://www.the-mage-expert.com/378/magento-getting-category-url-with-category-id/</link>
		<comments>https://www.the-mage-expert.com/378/magento-getting-category-url-with-category-id/#comments</comments>
		<pubDate>Thu, 25 Jul 2013 08:57:08 +0000</pubDate>
		<dc:creator><![CDATA[Mex]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[category]]></category>
		<category><![CDATA[url]]></category>

		<guid isPermaLink="false">https://www.the-mage-expert.com/?p=378</guid>
		<description><![CDATA[To get a categories URL by category id, use the following code: [crayon-6af33ffb88283/]]]></description>
				<content:encoded><![CDATA[<p>To get a categories URL by category id, use the following code:</p>
<p></p><pre class="crayon-plain-tag">$categoryId = 55;
$url = Mage::getModel(&quot;catalog/category&quot;)-&gt;load($categoryId)-&gt;getUrl();</pre><p></p>]]></content:encoded>
			<wfw:commentRss>https://www.the-mage-expert.com/378/magento-getting-category-url-with-category-id/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting the current URL</title>
		<link>https://www.the-mage-expert.com/374/magento-getting-current-url/</link>
		<comments>https://www.the-mage-expert.com/374/magento-getting-current-url/#comments</comments>
		<pubDate>Mon, 15 Jul 2013 08:22:27 +0000</pubDate>
		<dc:creator><![CDATA[Mex]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[url]]></category>

		<guid isPermaLink="false">https://www.the-mage-expert.com/?p=374</guid>
		<description><![CDATA[Use the following code to get the current URL in Magento: [crayon-6af33ffb88531/]]]></description>
				<content:encoded><![CDATA[<p>Use the following code to get the current URL in Magento:</p>
<p></p><pre class="crayon-plain-tag">$currentUrl = $this-&gt;helper('core/url')-&gt;getCurrentUrl();</pre><p> </p>]]></content:encoded>
			<wfw:commentRss>https://www.the-mage-expert.com/374/magento-getting-current-url/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting the URL of a product image and display the image</title>
		<link>https://www.the-mage-expert.com/370/magento-getting-url-of-product-image-and-display-image/</link>
		<comments>https://www.the-mage-expert.com/370/magento-getting-url-of-product-image-and-display-image/#comments</comments>
		<pubDate>Fri, 12 Jul 2013 09:14:29 +0000</pubDate>
		<dc:creator><![CDATA[Mex]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[products]]></category>
		<category><![CDATA[url]]></category>

		<guid isPermaLink="false">https://www.the-mage-expert.com/?p=370</guid>
		<description><![CDATA[Use the following code to get a Magento products URL and to display the image on a tempate page: [crayon-6af33ffb915c2/]]]></description>
				<content:encoded><![CDATA[<p>Use the following code to get a Magento products URL and to display the image on a tempate page:</p>
<p></p><pre class="crayon-plain-tag">&lt;img src=&quot;&lt;?php echo $_product-&gt;getImageUrl(); ?&gt;&quot; alt=&quot;&lt;?php echo $_product-&gt;getName();?&gt;&quot; /&gt;</pre><p></p>]]></content:encoded>
			<wfw:commentRss>https://www.the-mage-expert.com/370/magento-getting-url-of-product-image-and-display-image/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reading request parameters</title>
		<link>https://www.the-mage-expert.com/296/reading-request-parameters/</link>
		<comments>https://www.the-mage-expert.com/296/reading-request-parameters/#comments</comments>
		<pubDate>Wed, 03 Apr 2013 14:03:03 +0000</pubDate>
		<dc:creator><![CDATA[Mex]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[url]]></category>

		<guid isPermaLink="false">https://www.the-mage-expert.com/?p=296</guid>
		<description><![CDATA[The following short snippet is sufficient to read a Magento request parameter: [crayon-6af33ffb91bc7/]]]></description>
				<content:encoded><![CDATA[<p>The following short snippet is sufficient to read a Magento request parameter:</p>
<p></p><pre class="crayon-plain-tag">// Read the ID request parameter
// URL koennte so aussehen: http://www.domain.de/index.php/irgendwas/id/251/
$id = Mage::app()-&gt;getRequest()-&gt;getParam('id');</pre><p></p>]]></content:encoded>
			<wfw:commentRss>https://www.the-mage-expert.com/296/reading-request-parameters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
