简体   繁体   中英

NGINX Rewrite url without redirect


I have a url like this:

http://exemple.org/Connexion.php

I would like to have : http://exemple.org/se_connecter.html . But there's no file called se_connecter.html , I just want a rewrite, not a redirect.

Thank you.

What you're asking isn't possible in HTTP. You might be able to do it using a hack in javascript (eg using history.replaceState ) but I'd recommend against it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM