For example, my domain is
example.com and when someone navigates to
example.com/sample/page.htm, I want it to redirect to
I know that this can probably easily be done using a
.htaccess file or a 404 page. However, I am looking for a solution that doesn't require me to have my DNS provider host any files for me.
I want to do this with DNS settings only, e.g.:
- CNAME records
- A records
- 301 forwarding
- (any other DNS settings I'm missing)
Is there any way to do this?