By continuing your navigation on this site, you accept the use of cookies to offer you contents and adapted services. Legal Notice.
 

GuppY Help Center, help online, documentation and tutorials

telecharger.png

You are here :   Welcome » Plugins url-rewriting
 
Preview  Print...  Print this page...
Preview  Print...  Print this section...

Search

Search

FAQ GuppY v 5.02.xx

Here you will find FAQs on Guppy version 5.02.xx.

 ↑  

FAQ system

These FAQs address issues related to hosting and the system in general.

Documentation

In this box you will find documentation and tutorials

 ↑  

Online help

Legal

Here you will find important information regarding regulations and copyright

 ↑  

Plugins url-rewriting

rss This article is available in the standard RSS format for publication on your website :
https://ghc.freeguppy.org/data/en-articles.xml

Address rewriting is taken into account in GuppY 5.0.

It is implemented this way:

In the data/config/rules folder, a file containing the rules is placed in the data/config/rules folder, it will be loaded at the same time as the GuppY rules.
 

the rules are written like this:

RewriteRule ^plugins/mon_plugin/([a-z]{2})-(mon_sigle-1)$ plugins/mon_plugin/mon_script.php?lng=$1 [L]


For example, if you want to place a button in the menu, in plugins/my_plugin/plugin. inc you declare the address as follows:

$plugin_bar_url = $site['URLR'] == 'on' ? 'plugins/mon_plugin/'.$lng.'-mon_sigle-1' : 'mon_script.php?lng='.$lng;


We add as many rules as necessary following this principle.


Creation date : 02/03/2015 @ 16:39
Category : Documentation - Plugins tutorial
Page read 10582 times

You are here :   Welcome » Plugins url-rewriting
 

Visits

 3330253 visitors

 5 visitors online

Help

aide_help.png
On each page in admin, if you click on this icon, you get the online help page.

Site registered in the CNIL under agrément 1040387.
You have a right of access, modification, rectification and deletion
of the data according to the Computer law and Freedom (article 34) of January 6th, 1978.