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, 14:31:46

Author Topic: Problem with mod_rewrite  (Read 4095 times)

0 Members and 1 Guest are viewing this topic.

Offline azielazny

  • Junior Member
  • *
  • Posts: 27
  • Karma: +0/-0
    • View Profile
Problem with mod_rewrite
« on: 2016-06-30, 14:59:38 »
Hello again,

I have problem with .htaccess and mod_rewrite in subfolder. My htaccess is located in domain.com/test/ and work well a week ago. Now doesn't work.

I tried to change the configuration of PHP and servers, I ran cleanup and fixweb, fix-all and doesn't working.

My htaccess looks like this:
RewriteEngine on
RewriteCond %{REQUEST_URI} !\.(js|css)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php?$1 [L,QSA]


My current sysinfo:
A. Control Panel:
   - Kloxo-MR: 7.0.0.b-2016062904
   - Web: hiawatha-10.3.0-f.1.mr.el6.x86_64
   - PHP: php54s-5.4.45-1.ius.el6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.8 (Final) x86_64
   - Hostname: CentOS-68-64-minimal.vbox.com
C. Services:
   1. MySQL: MariaDB-server-10.0.26-1.el6.x86_64
   2. PHP:
      - Installed:
        - Branch: php70w-cli-7.0.7-1.w6.x86_64
        - Multiple:
          * php53m-5.3.29-1.ius.el6
          * php54m-5.4.45-1.ius.el6
          * php55m-5.5.36-2.ius.el6
          * php56m-5.6.22-2.ius.el6
          * php70m-7.0.7-1.w6
      - Used: --PHP Branch--
      - Multiple: disable
   3. Web Used: nginx
     - Hiawatha: hiawatha-10.3.0-f.1.mr.el6.x86_64
     - Lighttpd: lighttpd-1.4.39-3.el6.x86_64
     - Nginx: nginx-1.11.1-1.el6.ngx.x86_64
     - Apache: httpd24u-2.4.20-3.ius.el6.x86_64
       - PHP Type: suphp_event
       - Secondary PHP: on
   4. WebCache: none
     - ATS: --uninstalled--
     - Squid: --uninstalled--
     - Varnish: --uninstalled--
   5. Dns: bind
     - Bind: bind-9.9.7-1.mr.el6.x86_64
     - DJBDns: --uninstalled--
     - NSD: --uninstalled--
     - PowerDNS: --uninstalled--
     - Yadifa: --uninstalled--
   6. Mail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - pop3/imap4: package none-toaster is not installed
      - smtp: package none-toaster is not installed
      - spam: bogofilter-1.2.4-1.el6.x86_64


Where is problem?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Problem with mod_rewrite
« Reply #1 on: 2016-06-30, 16:19:33 »
Nothing change related to .htaccess. Remember, .htaccess in subdir depend on .htaccess in website root.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline azielazny

  • Junior Member
  • *
  • Posts: 27
  • Karma: +0/-0
    • View Profile
Re: Problem with mod_rewrite
« Reply #2 on: 2016-06-30, 17:13:10 »
I understand, but my website root has unchanged kloxo .htaccess.

I did a test now. I installed fresh WordPress to subfolder for 2 different accounts of customers and I changed my way of creating URLs. Wordpress also has the same problem. Subpage give me only the index.html for root.

Now I know that isn't the bed .htaccess, because new WP hasn't .htaccess, but subcatalog redirects to the main page root.
« Last Edit: 2016-06-30, 17:49:04 by azielazny »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Problem with mod_rewrite
« Reply #3 on: 2016-06-30, 18:22:49 »
Wordpress is possible as multisite CMS. It's as subdirectories or subdomains based.
..:: 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
Click Here

Page created in 0.068 seconds with 19 queries.

web stats analysis