hi @anushaat
you can add this mod_rewrite rewrite rule to your Dispatcher configuration (e.g., in rewrites/rewrite.rules or your virtual host configuration):
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/$
RewriteRule ^/$ /content/dam/demo.pdf [L,R=301]Alternative (with PT flag for internal rewriting):
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/$
RewriteRule ^/$ /content/dam/demo.pdf [PT,L]Here is the explanation of flags:
| Flag | Purpose |
| ^/$ | Matches only the root path (/) |
| R=301 | Sends a permanent redirect (301) to the browser |
| PT | Pass Through - internally rewrites without sending redirect to browser |
| L | Last rule (stops processing further rules) |
Super small example of a virtual host (just for demo purpose):
<VirtualHost *:80>
ServerName abc.com
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/$
RewriteRule ^/$ /content/dam/demo.pdf [L,R=301]
</VirtualHost>
Create a rewrite map file in DAM at /content/dam/redirectmaps/mysite-redirectmap.txt
Add the mapping:
/ /content/dam/demo.pdfWith this approach, you enable business users to manage redirects without requiring code deployment.