Introduction to URL redirection with #CoreAdmin
In some cases you need to configure URL redirection so your web page can present different pages according to a source URL without having to do this configuration inside webpage.
You will need to have access to a working #WebhostingManagement installation where to configure URL redirections.
How to configure URL redirection with #CoreAdmin
URL redirection with #CoreAdmin is pretty straightforward. Click on the webhosting to manage and then go to URL redirect section as shown:
Inside there you will be able to list, remove, edit and create new URL redirections. To create a new URL redirection here is how. Click on “Add URL redirect” and then fill the form:
How URL redirection works with #CoreAdmin
All URL redirection configured is placed directly into Web server configuration, without touching your site .htaccess file (for example).
This makes possible to configure URL redirection not only for webpages with php but also for the rest of technologies available.
At the same time, this avoids any possibility to interfere with software doing .htaccess automatic changes like #Wordpress or #Prestashop.
URL redirection limits and performance
It is known working cases where users are configuring more than 40.000 url redirections without any issue. It is not known where could be performance problems though 40.000 is a good number.
Introduction to certificates generated with #WebhostingManagement
By default, all certificates created by the #WebhostingManagement uses .PEM format, which is suitable for most configurations.
In the case you want to export one of these certificates to .PFX format, follow next steps.
You need to have a working #WebhostingManagement installation with a certificate already installed (completed or flagged as ready).
You will need Administrator rights too (application admin, machine admin or platform admin).
Exporting a certificate to .PFX with Core-Admin
Get into the panel, click on the machine to manage or application (if you only have application admin rights) and click on the #WebhostingManagement application:
Then click to launch “export to .pfx” option:
Now select certificate to export. Only completed certificates (.CSR signed, sent to certificate authority, and got back response to complete certificate) and certificates flagged as ready will be showed for export.
After that, a window will appear with a link to download .pfx certicate. Click on it and your are done.
If you get the following error when accesing to a website created by Core-Admin panel, or something similar:
The requested URL /cgi-bin/php-fastcgi-wrapper/index.php was not found on this server.
Then, it is possible that you created a website with custom option that has imported php-engine setting from other or site.com/bin directory was lost.
All releases may suffer this problem. It’s not a bug but a wrong custom configuration.
The problem is caused because, somehow, core-admin was not able to create all PHP structures needed to run this site with a different php engine.
To solve this, follow these general steps:
- Disable custom configuration and let core-admin control site.conf apache2 configuration. For that go to WebHosting management tool, then click on custom site configs, find there site affected, copy into a temporal document your custom settings (to restore them later) and disable custom configuration.
- After that, select the right php engine you want under “PHP engines” section.
- Then, enable again custom site configuration (if needed) and restore your custom settings.
Configuring max POST size (post_max_size and upload_max_filesize)
Core-Admin starting from revision 5110, supports configuring easily the max POST size you can do to a given web size, known also as php settings “post_max_size” and el “upload_max_filesize”.
For that, get inside your Core-Admin panel as admin user, select a particular web site you want to update, and then click to “Site options”
If the option is not configured, it will be shown as “not configured”. Now, you only have to select it by clicking over it, then setup the required value (in megabytes MB) and then click on “Edit option”. With that you are done.