How do I redirect a link without .html

Sorry if this isn’t the correct forum. Please tell me where I should ask this. I’m not even sure if I’m phrasing the question correctly!

In a text document, I want to write “Go to” and when they type “” in to the address bar, I want them to go to “”.

I can’t figure out how to do that. In.htaccess, I’ve tried this, but it doesn’t work (goes to file not found page):

Redirect 301

Anyone have any ideas? Thanks in advance!

Does /bar/foo.html exist? mod_alias matches on paths, not URLs:

Redirect 301 /foo




That worked! Guess I didn’t understand mod_alias correctly. Thank you!