UnixGuru

×
×

Redirect individual files

Back

To redirect individual files, like example.com/oldfile.html to newfile.html you can use a 301 redirect like this:

Redirect 301 /oldfile.html /newfile.htm


To redirect one specific file to another domain such as example.com/oldfile.html to example.net/newfile.html

Redirect 301 /oldfile.html http://example.net/newfile.html

Was this article helpful?
Dislike0 Like0

Views: 288