The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[resolved] Sudomain Redirect Problem (3 posts)

  1. Daniel
    Posted 3 years ago #

    Hello, I am having what I would have assumed to be a problem with a simple solution but it appears to be eluding me. I am trying to setup a simple redirect of a subdomain of one my my multisite installs. The redirect will be going to an iTunes feed. I tried to use a CNAME record but it appears that this does work with the iTunes url.

    I Tried to add the following to the root .htaccess file and that doesn't seem to be working either. I don't know if it's a problem with the .htaccess file or if I'm going about this the completely wrong way.

    any help would be greatly appreciated.

    #Domain Specific Redirects
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^(subdomain\.)?domain\.org [NC]
    RewriteRule ^(.*).html$ http://itunes.apple.com/us/podcast/podcasturl/ [R=301,L]

  2. If you want the whole subdomain to redirect, it should be this:

    RewriteCond %{HTTP_HOST} ^subdomain\.domain\.org [NC]
    RewriteRule ^(.*)  http://itunes.apple.com/us/podcast/podcasturl/  [L,R=301]
  3. Daniel
    Posted 3 years ago #

    Worked like a charm. You always come through! Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic