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-27, 08:09:47

Author Topic: .htaccess redirect not working apache  (Read 3284 times)

0 Members and 1 Guest are viewing this topic.

Offline azzureal

  • Master
  • **
  • Posts: 420
  • Karma: +1/-0
    • View Profile
.htaccess redirect not working apache
« on: 2015-01-30, 07:33:34 »
I changed some value but not work.
How can I solve?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: .htaccess redirect not working apache
« Reply #1 on: 2015-01-30, 07:50:18 »
Before asking, better inform 'sh /script/sysinfo' (always) and content of .htaccess.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline azzureal

  • Master
  • **
  • Posts: 420
  • Karma: +1/-0
    • View Profile
Re: .htaccess redirect not working apache
« Reply #2 on: 2015-01-30, 08:12:51 »
Thanks for your reply.

1. sysinfo

A. Kloxo-MR: 7.0.0.b-2014102004

B. OS: CentOS release 6.5 (Final) x86_64

C. Apps:
   1. MySQL: mysql55-5.5.40-1.ius.el6.x86_64
   2. PHP: php53u-5.3.29-1.ius.el6.x86_64
   3. Httpd: httpd-2.2.29-1.mr.el6.x86_64
   4. Lighttpd: --uninstalled--
   5. Hiawatha: hiawatha-9.8.0-f.2.mr.el6.x86_64
   6. Nginx: --uninstalled--
   7. Cache: --uninstalled--
   8. Dns: bind-9.9.5-1.el6.x86_64
   9. Qmail: qmail-toaster-1.03-1.3.38.mr.el6.x86_64
      - with: courier-imap-toaster-4.1.2-1.3.16.mr.el6.x86_64

D. Php-type (for Httpd/proxy): php-fpm_event

2. .htaccess
###Start Kloxo PHP config Area

### begin content - please not remove this line

### MR -- attention
### 1. Move '#<Ifmodule !mod_php5.c>' until '#</Ifmodule>' on
###    above '###Start Kloxo PHP config Area'
### 2. Remove # in front of '#<Ifmodule !mod_php5.c>' and '#</Ifmodule>'
###    on point (1)
### 3. Remove # in front of 'AddHandler x-httpd-php52' to activate secondary-php
###    on point (1)
### 4. Or Remove # in front of 'AddHandler x-httpd-php' to activate primary-php
###    on point (1) if select suphp_worker/_event for primary-php

#<Ifmodule !mod_php5.c>
    #AddHandler x-httpd-php52 .php
    #AddHandler x-httpd-php .php
#</Ifmodule>

### end content - please not remove this line

###End Kloxo PHP config Area

<Ifmodule mod_php4.c>
        php_value error_log "/home/markun/__processed_stats/markun.pe.kr.phplog"
        php_value upload_max_filesize 32M
        php_value max_execution_time  30
        php_value max_input_time  60
        php_value memory_limit  32M
        php_value post_max_size  32M
        php_flag register_globals  off
        php_flag display_errors  off
        php_flag file_uploads  on
        php_flag log_errors  off
        php_flag output_buffering  off
        php_flag register_argc_argv  on
        php_flag magic_quotes_gpc   off
        php_flag magic_quotes_runtime  off
        php_flag magic_quotes_sybase  off
        php_flag mysql.allow_persistent  off
        php_flag register_long_arrays  on
        php_flag allow_url_fopen  on
        php_flag cgi.force_redirect  on
        php_flag enable_dl  on
</Ifmodule>


<Ifmodule mod_php5.c>
        php_value error_log "/home/markun/__processed_stats/markun.pe.kr.phplog"
        php_value upload_max_filesize 32M
        php_value max_execution_time  30000
        php_value max_input_time  60
        php_value memory_limit  32M
        php_value post_max_size  32M
        php_flag register_globals  off
        php_flag display_errors  off
        php_flag file_uploads  on
        php_flag log_errors  off
        php_flag output_buffering  off
        php_flag register_argc_argv  on
        php_flag magic_quotes_gpc   off
        php_flag magic_quotes_runtime  off
        php_flag magic_quotes_sybase  off
        php_flag mysql.allow_persistent  off
        php_flag register_long_arrays  on
        php_flag allow_url_fopen  on
        php_flag cgi.force_redirect  on
        php_flag enable_dl  on
</Ifmodule>

###End Kloxo PHP config Area

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: .htaccess redirect not working apache
« Reply #3 on: 2015-01-30, 11:31:22 »
Kloxo-MR is not permit php_value and php_flag in .htaccess for security reason. And also, php_value and php_flag only work under mod_php mode (like ruid2 and itk).
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: .htaccess redirect not working apache
« Reply #4 on: 2015-01-30, 11:34:11 »
Set php setting via panel in 'php configure' and 'advanced php configure'.

But, I didn't found redirect code in your .htaccess.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine

Page created in 0.072 seconds with 18 queries.

web stats analysis