[Qgis-psc] Redirect on PyQGIS
Denis Rouzaud
denis.rouzaud at gmail.com
Tue Jun 9 07:42:34 PDT 2020
I would simply add
RewriteRule ^\/pyqgis/[34].\d*[13579]/(.*) /pyqgis/master/$1 [R]
rather than redirecting the dev version to their matching version.
That will be more future proof, and avoid any need of maintenance of these
links.
Le mar. 9 juin 2020 à 16:37, Richard Duivenvoorde <rdmailings at duif.net> a
écrit :
> On 6/9/20 3:06 PM, Mathieu Pellerin wrote:
> > It'd not only be nice but match the behavior of the pyqgis cookbook and
> > the qgis documentation sites too.
> >
> > On Tue, Jun 9, 2020, 19:59 Denis Rouzaud <denis.rouzaud at gmail.com
> > <mailto:denis.rouzaud at gmail.com>> wrote:
> >
> > Hi Richard, hi PSC,
> >
> > Not sure if you are still handing the PyQGIS redirect, if you are
> > not, maybe Tim?
> >
> > Matthieu (nirvn) was pointing out that it would be nice that any
> > non-existing version would automatically redirect to master.
> > e.g. manual/3.13/ will auto redirect to manual/master/
> >
> > Is this possible?
>
> Ok, I think it works...
>
> RewriteRule ^\/pyqgis/3.1/(.*) /pyqgis/3.2/$1 [R]
> RewriteRule ^\/pyqgis/3.3/(.*) /pyqgis/3.4/$1 [R]
> RewriteRule ^\/pyqgis/3.5/(.*) /pyqgis/3.6/$1 [R]
> RewriteRule ^\/pyqgis/3.7/(.*) /pyqgis/3.8/$1 [R]
> RewriteRule ^\/pyqgis/3.9/(.*) /pyqgis/3.10/$1 [R]
> RewriteRule ^\/pyqgis/3.11/(.*) /pyqgis/3.12/$1 [R]
> RewriteRule ^\/pyqgis/3.13/(.*) /pyqgis/master/$1 [R]
>
> Lemme know if you have issues, or better options
>
> Regards,
>
> Richard Duivenvoorde
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-psc/attachments/20200609/19a447cf/attachment.html>
More information about the Qgis-psc
mailing list