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-28, 01:50:56

Author Topic: hiawatha the rewrite rules?  (Read 5978 times)

0 Members and 1 Guest are viewing this topic.

Offline RucLinux

  • Valuable Member
  • *
  • Posts: 78
  • Karma: +0/-0
    • View Profile
hiawatha the rewrite rules?
« on: 2014-04-05, 23:27:27 »
apache rewrite the rules of how to convert hiawatha the rewrite rules? Thank you

Quote
RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topic=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1

Quote
RewriteEngine On
###ErrorDocument 404 /404.htm
RewriteRule ^archiver/((fid|tid)-[\w\-]+\.html)$ archiver/index.php?$1
RewriteRule ^forum-([0-9]+)-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2
RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ viewthread.php?tid=$1&extra=page\%3D$3&page=$2
RewriteRule ^space-(username|uid)-(.+)\.html$ space.php?$1=$2
RewriteRule ^tag-(.+)\.html$ tag.php?name=$1
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F]

Offline RucLinux

  • Valuable Member
  • *
  • Posts: 78
  • Karma: +0/-0
    • View Profile
Re: hiawatha the rewrite rules?
« Reply #1 on: 2014-04-05, 23:36:24 »
vi /usr/local/lxlabs/kloxo/init/hiawatha.conf
Edit the configuration file settings?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: hiawatha the rewrite rules?
« Reply #2 on: 2014-04-06, 08:17:27 »
Go to hiawatha-website.org and learn about urltoolkit.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline RucLinux

  • Valuable Member
  • *
  • Posts: 78
  • Karma: +0/-0
    • View Profile
Re: hiawatha the rewrite rules?
« Reply #3 on: 2014-04-06, 20:54:16 »
Go to hiawatha-website.org and learn about urltoolkit.
Quote
[root@vps ~]# find / -name hiawatha.conf
/etc/hiawatha/hiawatha.conf
/home/hiawatha/etc/conf/hiawatha.conf
/usr/local/lxlabs/kloxo/file/hiawatha/etc/conf/hiawatha.conf
/usr/local/lxlabs/kloxo/init/hiawatha.conf
Which configuration file should be set up? I set a lot of times to no avail.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: hiawatha the rewrite rules?
« Reply #4 on: 2014-04-07, 04:16:22 »
URLToolkit must declare inside each domain config. Modified /home/hiawatha/tpl/domains.conf.tpl with 'customize rule'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline RucLinux

  • Valuable Member
  • *
  • Posts: 78
  • Karma: +0/-0
    • View Profile
Re: hiawatha the rewrite rules?
« Reply #5 on: 2014-04-08, 02:03:15 »
URLToolkit must declare inside each domain config. Modified /home/hiawatha/tpl/domains.conf.tpl with 'customize rule'.
I just declare inside each domain config., But every time I restart hiawatha or repair php, it will restore the original configuration.
# vi /home/hiawatha/tpl/domains.conf.tpl
Add custom rules?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: hiawatha the rewrite rules?
« Reply #6 on: 2014-04-08, 02:45:33 »
Copy domains.conf.tpl to custom.domains.tpl and then modified this custom file. Run 'sh /script/fixweb; sh /script/restart-web'. Kloxo-MR will be read/use this custom file if exist. This is 'customize rule'.

..:: 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.031 seconds with 22 queries.

web stats analysis