# Deep Link Web Fallback Setup for `nsshop.alfalahdigitalworld.com`
## Folder Structure
```text
nsshop/
├── .htaccess
├── index.html
└── .well-known/
└── assetlinks.json
```
---
## 1. `.htaccess`
```apache
RewriteEngine On
# Allow Android App Links verification file
RewriteRule ^\.well-known/ - [L]
# Route product URLs to index.html
RewriteRule ^product/([0-9]+)$ /index.html [L,QSA]
# Route all other non-existing files/folders to index.html
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
```
---
## 2. `index.html`
```html
Open in App
Opening App...
If the app does not open automatically, install it from Google Play.
Download App
```
---
## 3. `.well-known/assetlinks.json`
```json
[
{
"relation": ["delegate_permission/common.handle_all_urls"],
"target": {
"namespace": "android_app",
"package_name": "com.example.anas_mobile_shop",
"sha256_cert_fingerprints": [
"D8:8A:CE:09:8D:41:44:A7:E9:50:42:97:6E:C7:AA:26:2E:1D:07:C7:C0:5B:BA:8A:BE:88:AD:7E:8B:90:42:1B"
]
}
}
]
```
---
## Upload Locations
* Upload `.htaccess` to your subdomain root.
* Upload `index.html` to your subdomain root.
* Create a folder named `.well-known` in the subdomain root.
* Upload `assetlinks.json` inside `.well-known`.
## Final URLs to Test
* `https://nsshop.alfalahdigitalworld.com/.well-known/assetlinks.json`
* `https://nsshop.alfalahdigitalworld.com/product/2`