I’m trying to make some redirects with .htaccess, and I’ve managed some redirects but not exactly what I want.
I want something similar to what facebook has, when someone enters to
I want to redirect them to
where folder can be any variable with letters and numbers ([A-Za-z0-9-]+)
I’ve managed to make it work with rules with extension, eg example.com/folder.htm, but I don’t want any extension at all
I’ve found several examples but none of them work for me. I’m sure that I’m missing something.
im pretty sure that is what you want.
just make sure you have valid regex, u can check that with some online tools, just search for it
btw the backslash before the minus is import, because its a special character within the character set. maybe you forgot that