Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-23, 21:00:31

Author Topic: wordpress UrlToolkit  (Read 7776 times)

0 Members and 1 Guest are viewing this topic.

Offline ibuxxi

  • Senior Member
  • *
  • Posts: 322
  • Karma: +0/-0
    • View Profile
wordpress UrlToolkit
« on: 2014-09-04, 15:43:14 »
Hello

how can i find the "wordpress UrlToolkit" by domain and global/default ?

thanks
KVM VPS | Centos 6.8 (32) 2GB | Kloxo-MR 7.0.0.b-2016* | hiawatha | php56 | php-fpm-event | mariadb

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: wordpress UrlToolkit
« Reply #1 on: 2014-09-04, 16:05:56 »
Asking to https://www.hiawatha-webserver.org/ forum. Place this rule in .hiawatha file in documentroot.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline ibuxxi

  • Senior Member
  • *
  • Posts: 322
  • Karma: +0/-0
    • View Profile
Re: wordpress UrlToolkit
« Reply #2 on: 2014-09-04, 16:16:04 »
i set .hiawatha

Quote
UrlToolkit {
  ToolkitID = some_id
  Header Referer ^http://(.+\.)?domain\.com Return
  Match ^/(.*)\.(jpg|png|jpeg|gif)$ Rewrite /show-image/?img=/$1.$2
}

only 500
KVM VPS | Centos 6.8 (32) 2GB | Kloxo-MR 7.0.0.b-2016* | hiawatha | php56 | php-fpm-event | mariadb

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: wordpress UrlToolkit
« Reply #3 on: 2014-09-04, 16:20:58 »
You can not put a toolkit rule in a .hiawatha file, just the UseToolKit option.  The toolkit must be defined in the configuration files prior to trying to use the .hiawatha file.

Also this setting overrides KloxoMR settings in vhost for that domain, so you have to include the defaults as well.
« Last Edit: 2014-09-04, 16:22:36 by chrisf »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline ibuxxi

  • Senior Member
  • *
  • Posts: 322
  • Karma: +0/-0
    • View Profile
Re: wordpress UrlToolkit
« Reply #4 on: 2014-09-04, 16:27:31 »
hi chrisf

where can i find the .conf for hiawatha  urltoolkit ?

thanks
KVM VPS | Centos 6.8 (32) 2GB | Kloxo-MR 7.0.0.b-2016* | hiawatha | php56 | php-fpm-event | mariadb

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: wordpress UrlToolkit
« Reply #5 on: 2014-09-04, 17:38:09 »
Ssh:
Code: [Select]
cd /opt/configs/hiawatha/etc/conf
cp hiawatha_standard.conf custom.hiawatha_standard.conf
vim custom.hiawatha_standard.conf

Add your toolkits in the custom file, before the final includes

Toolkit for wordpress is:
Code: [Select]
UrlToolkit {
    ToolkitID = wordpress
    RequestURI exists Return
    Match .*\?(.*) Rewrite /index.php?$1
    Match .* Rewrite /index.php
}

Save

Code: [Select]
sh /script/fixweb
sh /script/restart-web

Anything you define as an toolkit id can now be used in .hiawatha UseToolkit option, remember the defaults!

Example, if you create a toolkit with id 'wordpress' (like above)

.hiawatha
Code: [Select]
UseToolkit = redirect_domain_com, findindexfile, wordpress

Change 'domain' to yours, same with 'com', no dots! (.)

Enjoy!  ;)
« Last Edit: 2014-09-04, 18:04:00 by chrisf »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: wordpress UrlToolkit
« Reply #6 on: 2014-09-05, 11:36:59 »
@chrisf,

What's about URLToolkit in .hiawatha?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: wordpress UrlToolkit
« Reply #7 on: 2014-09-06, 00:34:47 »
Due to the way Hiawatha reads the configuration files, Hugo had told me that having actual toolkits in the .hiawatha files would be a major change.

That is when we spoke about at least allowing .hiawatha files to set what urltoolkits to use.  In our servers we have a addon toolkit.conf that contains 15 of the most used cms/blog/social script rewrite rules.  This allows our clients to easily have rewrite rule access.  And if we need to add custom rules for a client it is done easily from this file.

Putting a url toolkit in a .hiawatha will always throw a 500 internal error.
« Last Edit: 2014-09-06, 00:36:59 by chrisf »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline ibuxxi

  • Senior Member
  • *
  • Posts: 322
  • Karma: +0/-0
    • View Profile
Re: wordpress UrlToolkit
« Reply #8 on: 2014-09-06, 16:12:04 »
hi chrisf,

how can i rewite rules in hiawatha

Quote

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^ALTE-domain\.de$ [NC]
    RewriteRule ^(.*)$ http://www.NEUE-domain.de/$1 [R=301,L]
    RewriteCond %{HTTP_HOST} ^www.ALTE-domain.de$ [NC]
    RewriteRule ^(.*)$ http://www.NEUE-domain.de/$1 [L,R=301]

KVM VPS | Centos 6.8 (32) 2GB | Kloxo-MR 7.0.0.b-2016* | hiawatha | php56 | php-fpm-event | mariadb

Offline NginxHolic

  • Valuable Member
  • *
  • Posts: 84
  • Karma: +1/-0
    • View Profile
Re: wordpress UrlToolkit
« Reply #9 on: 2016-02-04, 01:18:02 »
Sorry to bump this topic.

@chrisf
Any update on this?
How can I use .hiawatha for url rewrite?
I've tried to put exactly you posted but nothing happened.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: wordpress UrlToolkit
« Reply #10 on: 2016-02-04, 01:32:24 »
Hiawatha (also nginx) in Kloxo-MR already include basic 'prettylink'. Wordpress is enough use it.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline NginxHolic

  • Valuable Member
  • *
  • Posts: 84
  • Karma: +1/-0
    • View Profile
Re: wordpress UrlToolkit
« Reply #11 on: 2016-02-04, 06:57:44 »
Hi,  how to use it then?
I've tried but permalink still shows error.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: wordpress UrlToolkit
« Reply #12 on: 2016-02-04, 07:16:03 »
Try:
Code: [Select]
yum install hiawatha-addons -y
cp -r /opt/hiawatha/urltoolkit/* /opt/configs/hiawatha/conf/toolkits

And then, in .hiawatha file add 'UseToolkit = wordpress' and 'sh /script/restart-web -y'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline NginxHolic

  • Valuable Member
  • *
  • Posts: 84
  • Karma: +1/-0
    • View Profile
Re: wordpress UrlToolkit
« Reply #13 on: 2016-02-04, 16:20:49 »
Doesn't work. It says 'No input file specified.'

here is my toolkit (I put wordpress in directory):

Code: [Select]
UrlToolkit {
    ToolkitID = wordpress
    RequestURI exists Return
    Match .*\?(.*) Rewrite /sub1/sub2/index.php?$1
    Match .* Rewrite /sub1/sub2/index.php
}

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: wordpress UrlToolkit
« Reply #14 on: 2016-02-04, 16:36:38 »
Inform here 'dir -l /opt/configs/hiawatha/conf/toolkits'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo
Click Here

Page created in 0.033 seconds with 21 queries.

web stats analysis