• Resolved Daniel

    (@41dreams)


    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$ https://itunes.apple.com/us/podcast/podcasturl/ [R=301,L]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

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

    RewriteCond %{HTTP_HOST} ^subdomain\.domain\.org [NC]
    RewriteRule ^(.*)  https://itunes.apple.com/us/podcast/podcasturl/  [L,R=301]
    Thread Starter Daniel

    (@41dreams)

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sudomain Redirect Problem’ is closed to new replies.