[Qgis-psc] Redirect on PyQGIS
Richard Duivenvoorde
rdmailings at duif.net
Tue Jun 9 07:36:41 PDT 2020
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
More information about the Qgis-psc
mailing list