Score:0

File extension redirect

us flag

I was wondering how I could redirect example.com/file to example.com/file.php or example.com/file.html.
Basically, I would like the extension to be hidden.

After some research, I found out that I actually need a .htaccess but I have no idea about what to put in.
I'm using Ubuntu 20.04 on OVH

pa4080 avatar
cn flag
Which is your web server Apache2, NGINX, Lighttpd or something other? The keyword you need to search for is *pretty url*, for example you can search for [apache2 pretty url](https://duckduckgo.com/?q=apache2+pretty+url&atb=v1-1&ia=web).
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.