I am currently migrating my website from Apache to nginx
, but my .htaccess
file is not working. My website is inside the /usr/share/nginx/html/mywebsite
folder. How can I use .htaccess
in my nginx
server?
This is my .htaccess
file:
RewriteEngine on
RewriteRule video/watch/([a-zA-Z0-9_@$*-]+)/?$ "videos-single.php?id=$1" [NC]
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…