.htaccess -> Primary script unknown

Discussion in 'Installation/Configuration' started by commentator, Oct 15, 2017.

  1. commentator

    commentator Member

    Hello,

    Today I installed a server following https://www.howtoforge.com/tutorial...-9-stretch-apache-bind-dovecot-ispconfig-3-1/
    When testing a website (php-fpm) with this .htaccess:
    Code:
    RewriteEngine on
    RewriteRule ^index.php / [R=301,L]
    RewriteRule  ^[a-z0-9]+\.[a-z0-9]+$ - [NC,L]
    RewriteCond %{ENV:REDIRECT_STATUS} ^$
    RewriteCond %{REQUEST_URI} !^/stats/.*
    RewriteCond %{REQUEST_URI} !^/scripts.js.php
    RewriteCond %{REQUEST_URI} !^/style.css.php
    RewriteRule ^([a-z_0-9/\.-]+)$ myfile.php/$1 [NC,QSA,L]
    
    I get
    when visiting my.site/mydir
    On the previous server it redirects 'mydir' as parameter to myfile.

    Suggestions/ideas to solve this?
     
  2. bch

    bch New Member

  3. commentator

    commentator Member

Share This Page