Universal link is a great way to strengthen the relationship between your website and your app. With universal links, your customers are brought directly to a product category or product details page in your app when they click on a product category or product link from Google search results, email, or from other apps like Facebook and Twitter.
JMango360 supports universal links since version 3.11.0 for Magento apps. If you would like to have this feature in your app, please do the following:
Step 3: We will send you two configuration files, i.e. apple-app-site-association and assetlinks.json. Please upload these configuration files to your web server, at <PATH_TO_DOCUMENT_ROOT>/.well-known
Step 4: If your website uses Apache as a web server, further configurations are required as below.
Further configurations are required if your website uses Apache as a web server.
Step 1: Configure .htaccess inside the root directory
1. Go to the root directory.
2. Open .htaccess file.
3. Add the below codes to the file.
3.1. Add this code under the "## this line is specific for 1and1 hosting"
- AddType application/json apple-app-site-association
3.2. Add these codes under the " <IfModule mod_rewrite.c>"
- RewriteRule .well-known/apple-app-site-association$.well-known/apple-app-site-association.json [L]
- RewriteRule apple-app-site-association$ .well-known/apple-app-site-association.json [L]
3.3. Add these codes at the end of .htaccess file
- <Files apple-app-site-association>
- AddType application/json .*
- </Files>
Step 2: Configure the Apache site
1. Open the Apache configuration of the site, e.g., example.com.conf
2. Add these codes under the <VirtualHost *:80> and <VirtualHost *:443>
- <Directory PATH_TO_DOCUMENT_ROOT/.well-known/>
- Options Indexes FollowSymLinks
- AllowOverride all
- Require all granted
- <Files apple-app-site-association>
- Header set Content-type "application/pkcs7-mime"
- </Files>
- Header Set Pragma "no-cache"
- Header Set Expires "Thu, 1 Jan 1970 00:00:00 GMT"
- Header Set Cache-Control "max-age=0, no-store, no-cache, must-revalidate"
- Header Unset ETag
- FileETag None
- </Directory>
Step 3: Restart the Apache server.