Welcome to Llama Redirect Plugin documentation page. Here we covered almost everything that you easily you can set up and use our plugin. If you have any questions that are beyond the scope of this documentation page, please feel free to contact us.
To install the plugin, please follow Wordpress Plugins › Lrp Docs installation guide. This will help you to install the plugin step by step.
How to start
To activate Llama Assistant, please follow these steps:
Navigate to "Llama Assistant" tab
Read the description, what will happen after you enable Llama Assistant
Click on blocks to read more about the data will be collected from your plugin's settings
Click "Confirm & Enable Llama Assistant"
There are two important settings which are used in Llama Assistant:
(Turn On / Turn Off)
Enable / Disable Llama Assistant in your plugin. If Llama Assistant is enbaled, then syncronization is active and Llama Machine Learning service will connect to your website time to time.
This connection is named as "Syncronization", which actually represents following process:
Llama Assistant schedules a syncronization event between our Machine Learning service and your plugin;
We send HTTP request to your plugin, which contains an access token, issued when you active the Llama Assistant;
If access token is valid, then your plugin prepares the statistical data and sends back to Llama Machine Learning Service;
Read more about syncronization process - here
Llama Assistant Auto Apply
(Turn On / Turn Off)
Enable / Disable Llama Assistant permission to make changes in your plugin settings.
If you enable, then Llama Assistant will have required permissions to make changes.
The process is following:
When your statistical data is received on Llama Machine Learning Service side, it is being analyzed and classified;
If our Machine Learning algorithms discover a personal suggestion for you, it will be sent as personal message in web chat interface;
If you enabled Auto Apply, then Llama Assistant will send HTTP request to your plugin with a specific command list to process them;
Your plugin will receive this structured information (called "payload") and will process each task;
Such tasks could be "UPDATE", "DELETE" or "INSERT" a setting or an item.
Ask for help
When you enabled Llama Assistant, you will see a welcome message from Llama, describing the common structure.
To ask Llama Assistant to help you, just type
/help or using free text message, like
I need help
After this, you'll receive an answer like,
Sure. Please write down what you like to receive help with?
Now, just type your question and Llama Assistant will check all our support documentation, including Installation manual, Users manual, website knowledge base, our blog and other resources to find a relevant answer for your question.
Here is an example:
Llama Assistant understands specific buil-in commands. The logic is quite equal to Slack chat bots, or Telegram bots.
To explore all known commands, just send a message
Llama Assistant will send a reply to you with full list of commands available right now.
Alternatively, you can click on Menu icon on the bottom of the chat box - and you will see active buttons below the chat.
For the quick usage of commands, start typing
/ ... "slash" symbol and there would be autocomplete list of commands matching your current message.
The list of commands might change, because we update this functionality on the regular basis.
Here is the list of main commands, you should have in your Llama Assistant chat box:
/help- Search an answer in knowledge base and in documentation
/all-commands- View list of all known commands
/my-profile- Display my profile data
/all-plugins- List all LlamasApps plugins
/about- About Llama ML Assistant Bot
/stop- Unsubscribe from ML Assistant
/update-data- Synchronize data manually
/auto-on- Activate automatic application the suggestions you receive from Llama Assistant
/auto-off- Deactivate automatic application the suggestions you receive from Llama Assistant
/http-codes- More information about HTTP codes
/move-404- Create new redirect rules from your 404 log
/tracking-on- Enable tracking for all redirects
/tracking-off- Disable tracking for all redirects
/redirects-on- Activate all redirects, that you currently have
/redirects-off- Deactivate all redirects, that you currently have
The synchronization process works one way only.
When you enable Llama Assistant, we create a scheduled synchronization with your website. Synchronization is processed every hour, but might be changed automatically, based on the data volume, total amount of active users and other reasons to keep our system healthy using load balancers.
The synchronization process consists of following steps:
Llama Assistant does HTTP request to your website. The URL address is the direct link to a file in this plugin (the file location is shown on the welcome screen, before you enable the Llama Assistant).
In the request, we send access token, which was issued by Llama Assistant when you register
Your plugin file compares the access token, received from Llama Assistant and that you actually have in your WordPress options.
If access token matches, we check if Llama Assistant is enabled on your side. If not, we update your status on our side and won't make synchronization request again.
If Llama Assistant is enabled, your plugin file fires a plugin synchronization function
Plugin synchronization function
We suggest you to check the source code of this function to be sure, which data is being collected during the synchronization request.
Read more about data synchronization here
This function prepares your statistical data - this is all the records in this plugins database tables. All data is being compressed and sent to Llama Machine Learning Service.
Then we analyze your data to classify it and to find some errors or suggestions. Read more about the technology here
In the end of this process, Llama Assistant might send you a message with some suggestions using web chat.
How to turn it off
There are a few ways how it might happen
Navigate to "Llama Assistant" tab in the plugin menu
Click "Open Settings"
Find "Llama Assistant" row
Click Turn Off
After this there might be one more HTTP synchronization call from Llama Assistant, which will receive information that you disabled Llama Assistant and the synchronization with your website will be turned off.
Plugin Deactivate / Uninstall
If you uninstall or deactivate the plugin, you will start from beginning and it will take some time to receive relevant suggestions, as described above.
Using Llama Redirect Plugin you can select different types of server response codes.
|Most popular codes|
|301 - Moved Permamently. Wiki: This and all future requests should be directed to the given URI.|
|302 - Found. Wiki: Tells the client to look at (browse to) another URL. 302 has been superseded by 303 and 307. This is an example of industry practice contradicting the standard. The HTTP/1.0 specification (RFC 1945) required the client to perform a temporary redirect (the original describing phrase was "Moved Temporarily"), but popular browsers implemented 302 with the functionality of a 303 See Other. Therefore, HTTP/1.1 added status codes 303 and 307 to distinguish between the two behaviours. However, some Web applications and frameworks use the 302 status code as if it were the 303.|
|307 - Temporary Redirect. Wiki: In this case, the request should be repeated with another URI; however, future requests should still use the original URI. In contrast to how 302 was historically implemented, the request method is not allowed to be changed when reissuing the original request. For example, a POST request should be repeated using another POST request.|
|Other response codes|
|300 - Multiple Choice. Wiki: Indicates multiple options for the resource from which the client may choose (via agent-driven content negotiation). For example, this code could be used to present multiple video format options, to list files with different filename extensions, or to suggest word-sense disambiguation.|
|303 - See Other. Wiki: The response to the request can be found under another URI using the GET method. When received in response to a POST (or PUT/DELETE), the client should presume that the server has received the data and should issue a new GET request to the given URI.|
|304 - Not Modified. Wiki: Indicates that the resource has not been modified since the version specified by the request headers If-Modified-Since or If-None-Match. In such a case, there is no need to retransmit the resource since the client still has a previously-downloaded copy.|
|305 - Use Proxy. Wiki: The requested resource is available only through a proxy, the address for which is provided in the response. Many HTTP clients (such as Mozilla and Internet Explorer) do not correctly handle responses with this status code, primarily for security reasons.|
|308 - Permanent Redirect. Wiki: The request and all future requests should be repeated using another URI. 307 and 308 parallel the behaviors of 302 and 301 but do not allow the HTTP method to change. So, for example, submitting a form to a permanently redirected resource may continue smoothly.|
While testing please note that 301, 308 (Permanent redirects) are "remembered" by most of all browsers. This means if you create and test your redirect using 301 or 308 server response code - your browser probably cache this. And when you delete this redirect setting or even UNINSTALL the plugin - browser will STILL redirect your URL.
User friendly interface
Start using Llama Redirect Plugin
Your first redirect
To create your first redirect with the plugin, please follow these steps:
Navigate to Plugins home page (Click on URL redirects on the left navigation bar in admins panel)
Click button "Add" or Navigate to "Add URL" tab on the top
Fill-in your redirect settings (most important to add Link from and Link target) and click "Add" button on the bottom
Thats it! Now this redirect is active and you can test it using your browser
Add URL fields
|Specify server response code which will be executed|
|Type URL to catch redirects from.|
|Type full URL to target redirect visitor.|
|If checked, clicks will be recorded into Statistics tab|
|Use this redirect rule only if clients browser is in this list|
|Use this redirect rule only if clients OS is in this list|
|Type domain name which indicates the last page the visitor was on (the one where visitor clicked the link)|
|Use this redirect rule only if a WordPress user role is in this list|
|Time of the day when this redirect rule is active from - to.|
|Use this redirect rule only if Month now is in this list|
|Use this redirect rule only if Year now is in this list|
|Use this redirect rule only if URL matches this GET attribute|
|Use this redirect rule only if visitors IP is in this IP range.|
Match any URL
Use "Link from" field to specify the URL where user will be redirected from. You can type here any URL on your site, even if this URL actually not exists
Any target URL
Target URL is the redirection target - where user will be transferred if redirection rule is active. This URL could be your local URL address (e.g. some other page) or it could be some external resource. For example: a link to your Facebook page.
Browser matching criteria
When you have an active redirection rule, the plugin is using
$_SERVER['HTTP_USER_AGENT'] to define the visitor's browser.
So you can select any Browser from this list to focus the redirect rule to a specific browser:
- Internet Explorer
- Handheld Browser
OS matching criteria
When you have an active redirection rule, the plugin is using
$_SERVER['HTTP_USER_AGENT'] to define the visitor's operating system.
So you can select any OS from this list to focus the redirect rule to a specific OS:
Windows 10, Windows XP, Windows 2000, Windows NT, Windows Server 2003, Windows Vista, Windows 7, Windows CE, Windows Media Center, Windows, Windows ME, Windows 98, Windows 95, Java, Solaris, DOS, Unix, Mac OS X, Macintosh PowerPC, Mac OS, SunOS, BeOS, RISC OS, OS/2, FreeBSD, OpenBSD, NetBSD, IRIX, Plan9, OSF, AIX, GNU Hurd, Linux - Fedora, Linux - Kubuntu< Linux - Ubuntu, Linux - Debian, Linux - CentOS< Linux - Mandriva, Linux - SUSE, Linux - Slackware (Dropline GNOME), Linux - ASPLinux, Linux - Red Hat, Linux, AmigaOS, Amiga, PalmOS, WebTV, Dreamcast OS
"Referer domain" is used for analyzing the
$_SERVER['HTTP_REFERER'] value. If your URL is placed somewhere on Internet - on any other domain, when user clicks to your link in most cases your site gets the information of the previous domain / website. Using this setting you can activate the redirect rule if visitor's referer domain matches your criteria.
When someone is accessing your WordPress website pages it is possible to determine the WordPress user role. Using the field
"WP user role" you can target the redirect rule on a specific WP role, and this rule won't be active for the other roles
Read more about WordPress user roles here - https://codex.wordpress.org/Roles_and_Capabilities
Supported roles: Administrator, Editor, Author, Contributor, Subscriber
Time interval redirects
The redirect rule can be active during some time frame only. For example you want this redirect rule to be active from 12:00 to 13:00. Note that time intervals have to be in 24H format.
Day of the week redirects
The redirect rule can be active in a specific days of the week. For example activate the redirect rule on Monday, Tuesday only.
Supported days: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday
The redirect rule can be active in a specific Month. For example activate the redirect rule in August only.
Supported months: January, February, March, April, May, June, July, August, September, October, November, December.
GET Any parameter
GETparameter is the attribute of URL which comes to the original URL link. For example: https://my-website.com?key=value - the
keyis attribute key, and the
valueis the value of key.
Using the field
GET parameter you can specify exact GET parameter. For example activate the redirect rule only if
utm_source is specified.
Wildcard supported in GET value!
You can focus activate the redirect rule only if visitor's IP is in the list. Type the IP from and IP to to cover the range of IP addresses.
126.96.36.199 is in the range of
188.8.131.52 - 184.108.40.206
Use our IP range tester online firstly to check if your IP range settings meet your idea.
Enable force HTTPS
Using the redirect plugin you can force redirect all the pages to their HTTPS version.
Navigate to Settings > Enable force HTTPS > Yes
This will transfers the trafic from HTTP pages to HTTPS. Please note that your website must have the valid SSL HTTPS certificate to handle this in a propper way.
Wildcard is supported in:
- Link from
- Referer domain
- GET value
Examples of using wildcard:
|Matches anything starting with "a". For example: "some_value*" will match "some_valuetetext", "some_value123" etc|
|Matches anything between slashes. This example will match: my-website.com/product/my-product/ , my-website.com/product/any-other-product/ etc|
Use our Online Wildcard Tester Tool firstly to check if your wildcard meets your idea.
Redirect rule analysis
When a redirect rule found matching the source URL (Link from), all your settings are being analyzed to meet the visitor's values.
Explore the following structure how plugins are making the decision to apply the redirect rule to this visitor or not. Plugins go within all these steps and only if all steps have a match then redirect rule is active and a visitor is being transferred to a different URL (Link target). Please note that letters are important - lower case "a" is NOT equal to upper case "A".
|If you selected some browsers||Visitors browser is in your list|
|If you selected some Operating System||Visitors OS is in your list|
|If you typed some referer domain||If you use "*" (anything) or Visitors referer is defined and it matches your direct or wildcard rule|
|If you selected some WordPress role||Each role is checked using the WordPress |
|If you typed time from||If time now (on your server) is greater than you specified|
|If you typed time to||If time now (on your server) is less than you specified.|
|If you selected a Day||If day now is in your list|
|If you selected a Month||If month now is in your list|
|If you selected a Year||If year now is in your list|
|If you typed GET key + GET val values||If you use "*" (anything) as Value, then value is always match. Key must have full match with the visitors URL.|
|If you typed GET value only.||If visitors URL has any parameter which value is equal to your specified one.|
|If you typed GET key only.||If visitors URL has any key which is equal to your specified one.|
|If you typed IP from and you typed IP to - which becomes an IP range||If visitors IP is in range between your specified IP from and your specified IP to. Is used |
|If you typed IP from only - one IP match||If visitors IP is the same as you specified.|
|If you typed IP to only - one IP match||If visitors IP is the same as you specified.|
404 (Not Found) Log
When someone is accessing the your websites URL which not exists, WordPress reply a
404 server response code to a visitor. Llama Redirect Plugin "catches" these events and records them into the 404 LOG
Here you can see the list of 404 (Not Found) pages which were accessed by your visitors. The table consists of:
- URL which was opened by a visitor
- Date time of event
- [Add redirect] button - to create new redirect using this URL
To access 404 log. Navigate to: "404s" tab in the plugin.
Import / Export
To import Redirect rule settings in bulk use following steps
Navigate to: Add URL
Download Example- to verify that your file structure is equal to the required one
If you don't have any redirects, you should add one to see it in Example file - because it is being created using your data
Then click Choose files and click
All redirect settings in your file will be created and you will them in
URL redirects(plugin's home) page
If you have any questions that are beyond the scope of this documentation page, please feel free to contact us.
Download this document in PDF format to have access to it at any time you need
Buy this plugin
Email & Help Center Support
Priority Email & Help Center Support
Priority Email & Help Center & Chat Support