Answers.Body: <p>Instead of using a redirect, what about using the saved URLs directly with your links?</p>
  
  <p>Let's say it's a channel with the handle <code>myExternalLinks</code> where you collect the links. The actual URL is entered into a field with the handle <code>myLinkUrl</code>.</p>
  
  <p>This is the template code to list the links:</p>
  
  <pre><code>{% set links = craft.entries.section('myExternalLinks') %}
  
  {% for link in links %}
  
      {#
       # Link to the URL entered into `myLinkUrl` instead of
       # linking to `entry.getUrl()` and then using a redirect on that entry template
       #}
      &lt;a href="{{ link.myLinkUrl }}"&gt;{{ link.title }}&lt;/a&gt;
  
  {% endfor %}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-08-21T15:03:19.573Z
Answers.Text: Ah it just hit me, you're right. They way I was doing was dumb :) Thanks @carlcs!
Answers.UserDisplayName: Salles
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-08-21T14:50:16.570Z
Answers.LastActivityDate: 2014-08-21T14:50:16.570Z
Answers.UserDisplayName: carlcs
Answers.Body: <p>Use this <a href="http://buildwithcraft.com/docs/templating/redirect" rel="nofollow"><code>redirect</code></a> tag in the template of your entries. Without any plugin! :)</p>
  
  <pre><code>{% redirect entry.myUrlFieldName %}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-08-21T14:01:40.477Z
Answers.Text: Hey @carlcs, maybe I haven't been clear enough... this will redirect all entries to the same URL?
Answers.UserDisplayName: Salles
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-08-21T14:02:55.677Z
Answers.Text: No. It'd redirect to the url entered into a custom field with the name `myUrlFieldName`, @Salles.
Answers.UserDisplayName: carlcs
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-08-21T14:05:07.990Z
Answers.Text: Ok, thank you! :)
Answers.UserDisplayName: Salles
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-08-21T13:54:57.867Z
Answers.LastActivityDate: 2014-08-21T13:54:57.867Z
Answers.UserDisplayName: carlcs
Body: <p>Say I have a custom field "URL" for each entry and I want them to be redirected to these specific URLs instead of Craft's.</p>
  
  <p>Similar to WordPress "Page Links To" plugin. <a href="http://wordpress.org/plugins/page-links-to/" rel="nofollow">http://wordpress.org/plugins/page-links-to/</a></p>
  
  <p>Can I do this in Craft?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-08-21T14:00:46.553Z
Comments.Text: Where do you list the links to these entries. Wouldn't it make sense to load the URL from that custom field into that list, instead of using 302 redirects?
Comments.UserDisplayName: carlcs
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-08-21T14:10:35.017Z
Comments.Text: hey @carlcs, how do you mean?
Comments.UserDisplayName: Salles
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-08-21T14:13:43.507Z
Comments.Text: What you're now doing is using a link `<a href="entryUrl"...` to link to that entry and then the visitor is redirected from that entry page to the URL you actually want him to see. My question is, why don't you use that URL in the actual link?
Comments.UserDisplayName: carlcs
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-08-21T14:29:33.360Z
Comments.Text: @carlcs These URLs are gonna be submitted by users via a front end form, so not by me actually ;)
Comments.UserDisplayName: Salles
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-08-21T14:38:26.600Z
Comments.Text: Yeah, but that makes no difference.
Comments.UserDisplayName: carlcs
Tags: <entries><url><redirect><redirection>
Title: How to redirect an entry's URL to a specific URL?
ThreadText: # How to redirect an entry's URL to a specific URL?
  
  (Asked by: username_0 on 2014-08-21)
  
  Say I have a custom field "URL" for each entry and I want them to be redirected to these specific URLs instead of Craft's.
  
  Similar to WordPress "Page Links To" plugin. <http://wordpress.org/plugins/page-links-to/>
  
  Can I do this in Craft?
  
  **Tags:** entries, url, redirect, redirection
  
  > **Comments:**
  > **username_1**: Where do you list the links to these entries. Wouldn't it make sense to load the URL from that custom field into that list, instead of using 302 redirects?  
  > **username_0**: hey @username_1, how do you mean?  
  > **username_1**: What you're now doing is using a link `<a href="entryUrl"...` to link to that entry and then the visitor is redirected from that entry page to the URL you actually want him to see. My question is, why don't you use that URL in the actual link?  
  > **username_0**: @username_1 These URLs are gonna be submitted by users via a front end form, so not by me actually ;)  
  > **username_1**: Yeah, but that makes no difference.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2014-08-21. Score: 2
  
  Instead of using a redirect, what about using the saved URLs directly with your links?
  
  Let's say it's a channel with the handle `myExternalLinks` where you collect the links. The actual URL is entered into a field with the handle `myLinkUrl`.
  
  This is the template code to list the links:
  
  ```
  {% set links = craft.entries.section('myExternalLinks') %}
  
  {% for link in links %}
  
      {#
       # Link to the URL entered into `myLinkUrl` instead of
       # linking to `entry.getUrl()` and then using a redirect on that entry template
       #}
      <a href="{{ link.myLinkUrl }}">{{ link.title }}</a>
  
  {% endfor %}
  
  ```
  
  > **Comments:**
  > **username_0**: Ah it just hit me, you're right. They way I was doing was dumb :) Thanks @username_1!  
  
  ---
  
  ### Answer by username_1 on 2014-08-21. Score: 1
  
  Use this [`redirect`](http://buildwithcraft.com/docs/templating/redirect) tag in the template of your entries. Without any plugin! :)
  
  ```
  {% redirect entry.myUrlFieldName %}
  
  ```
  
  > **Comments:**
  > **username_0**: Hey @username_1, maybe I haven't been clear enough... this will redirect all entries to the same URL?  
  > **username_1**: No. It'd redirect to the url entered into a custom field with the name `myUrlFieldName`, @username_0.  
  > **username_0**: Ok, thank you! :)  
  
  ---
  
  