Support » Fixing WordPress » modify .htaccess to redirect to app via deep-link

  • I have a marketing site for my iOS app at I’d like to make it so if someone visits (random numbers and letters) it redirects to app_name://invitecode/.

    Right now I have:

    #Invite Referral
    RewriteEngine On
    RewriteCond %{REQUEST_URI} ^/(invite|invite/.*)$
    RewriteRule ^invite/(.*)$/? app_name://$1/ [L,R=301]
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    # END WordPress

    However, this only gives me:

Viewing 1 replies (of 1 total)
  • I have the same problem. I am using a redirection plugin though. Any new leads on this one? I simply want to redirect one of my pages to my app at whatstep://thiscouldbeanything

Viewing 1 replies (of 1 total)
  • The topic ‘modify .htaccess to redirect to app via deep-link’ is closed to new replies.