Steve Wilson
January 30, 2020 08:14PM
I'm currently in the process of transitioning from wordpress to hugo.
For anyone not familiar with these, wordpress is php based and hugo
outputs static content (keeping it simple)
Currently wordpress is using ugly urls for posts, so "/?p=1234" in
wordpress might be "/this_nice_title" in hugo.
Now hugo allows me to specify aliases too which I'd like to leverage to
maintain links, but this is where I seem to be struggling with
rewrite/map etc.

Am I missing a way to access the arguments?

What I'm currently wanting to do is rewrite "/?p=1234" to "/1234/",
"/p=1234/" or even "/p1234/" but can't figure it out.

Anyone got an easy way to do this, or a better way?

Regards

Steve.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

rewriting $arg into request.

Steve Wilson January 30, 2020 08:14PM

Re: rewriting $arg into request.

Francis Daly January 31, 2020 06:30AM

Re: rewriting $arg into request.

Steve Wilson January 31, 2020 07:12AM

RE: rewriting $arg into request.

Reinis Rozitis January 31, 2020 07:38AM

Re: rewriting $arg into request.

Steve Wilson January 31, 2020 05:00PM

Re: rewriting $arg into request.

Francis Daly January 31, 2020 08:00AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 99
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready