<p>i placed  a test file named test.json in web folder of Craft CMS and put test.json in feed URL and it doesn't work -so it is not relative to web root as default-.</p>

<p>but when it says absolute format i believe it is  <code>/var/www/html/craft/web/test.json</code> -in local ubuntu, in your case maybe <code>{maybe top folders}/public/feeds/feed.csv</code>- or as path alias format: <code>@webroot/test.json</code> which both of them works for me.</p>

<p>as you mentioned URL format <code>http(s)://domain.tld/test.json</code> or <code>@web/test.json</code> works too.</p>

<p><a href="https://docs.craftcms.com/v3/config/#aliases" rel="nofollow noreferrer">docs for path alias</a></p>

CC BY-SA 4.0
2020-05-24T14:21:32.523Z
2020-05-24T14:21:32.523Z
user9975
<p>If you are using an external feed as your source - yes, you are right, it needs to be an absolute URL. </p>

<p>However, you can use aliases defined by Craft CMS and Yii2 to access a directory within the installation. <a href="https://docs.craftcms.com/v3/config/#aliases" rel="nofollow noreferrer">(please refer to the aliases here)</a></p>

<p>For example, if your feed is inside the <strong>storage/feeds/import.xml</strong>, you can refer to it in the Feed configuration as: </p>

<pre><code>@storage/feeds/import.xml
</code></pre>

CC BY-SA 4.0
2021-11-13T15:06:00.423Z
'@storage' => dirname(__DIR__) . '/storage',

Unable to reach @storage/feeds/docs.json. Message: Unable to parse data.
Leo Leoncio
CC BY-SA 4.0
2020-05-25T23:21:40.730Z
2020-05-25T23:21:40.730Z
zarun
<p>The <a href="https://docs.craftcms.com/feed-me/v4/feature-tour/creating-your-feed.html" rel="nofollow noreferrer">Feed Me documentation</a> says </p>

<blockquote>
  <p>"Provide the URL for your feed. This can be an absolute URL, relative (to the web root) and make use of any aliases"</p>
</blockquote>

<p>That's pretty confusing language. I thought I could create a folder in public called "feeds" that would contain my .csv. For example, /public/feeds/feed.csv. So I entered feeds/feed.csv in the Feed URL field. That didn't work. I was confused because "relative (to the web root)" doesn't really mean a relative path.</p>

<p>Is it true that the Feed URL needs to be an absolute URL in the form of http(s)://domain.tld/feed/feed.csv? I understand that aliases can be used and you wouldn't necessarily need to enter the domain in this field, but in general is this the required format?</p>

<plugin-feedme>
Clarification on Feed Me > Feed URL
# Clarification on Feed Me > Feed URL

(Asked by: username_0 on 2020-05-22)

The [Feed Me documentation](https://docs.craftcms.com/feed-me/v4/feature-tour/creating-your-feed.html) says

> "Provide the URL for your feed. This can be an absolute URL, relative (to the web root) and make use of any aliases"

That's pretty confusing language. I thought I could create a folder in public called "feeds" that would contain my .csv. For example, /public/feeds/feed.csv. So I entered feeds/feed.csv in the Feed URL field. That didn't work. I was confused because "relative (to the web root)" doesn't really mean a relative path.

Is it true that the Feed URL needs to be an absolute URL in the form of http(s)://domain.tld/feed/feed.csv? I understand that aliases can be used and you wouldn't necessarily need to enter the domain in this field, but in general is this the required format?

**Tags:** plugin-feedme

---

## 2 answers

### Answer by username_1 on 2020-05-24. Score: 2 | Accepted answer

i placed a test file named test.json in web folder of Craft CMS and put test.json in feed URL and it doesn't work -so it is not relative to web root as default-.

but when it says absolute format i believe it is `/var/www/html/craft/web/test.json` -in local ubuntu, in your case maybe `{maybe top folders}/public/feeds/feed.csv`- or as path alias format: `@webroot/test.json` which both of them works for me.

as you mentioned URL format `http(s)://domain.tld/test.json` or `@web/test.json` works too.

[docs for path alias](https://docs.craftcms.com/v3/config/#aliases)


---

### Answer by username_2 on 2020-05-25. Score: 1

If you are using an external feed as your source - yes, you are right, it needs to be an absolute URL. 
However, you can use aliases defined by Craft CMS and Yii2 to access a directory within the installation. (please refer to the aliases here)
For example, if your feed is inside the storage/feeds/import.xml, you can refer to it in the Feed configuration as: 
@storage/feeds/import.xml

> **Comments:**
> **username_3**: '@storage' => dirname(__DIR__) . '/storage',  Unable to reach @storage/feeds/docs.json. Message: Unable to parse data.  

---

