Score:0

Nginx rewrite rule not working for Wordpress website

ck flag

I have wordpress webiste with nginx, Want to rewrite
RewriteEngine On    # Turn on the rewriting engine

RewriteBase /sp-services/web-services/

RewriteRule ^v1/(.)/(.)$ $1/$2.php [NC,L] into nginx, but not working

jp flag
`RewriteRule` won't work in `nginx` because it is Apache `mod_rewrite` instruction.
Score:0
us flag

Apache mod_rewrite doesn't work at Nginx.

For this case, in nginx you can use something like this:

location /sp-services/web-services/v1 {
  rewrite ^/sp-services/web-services/v1/(.)/(.)$ /sp-services/web-services/$1/$2.php break;
}
I sit in a Tesla and translated this thread with Ai:

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.