Rewrite stop working after one change of server

Discussion in 'Server Operation' started by Abdelkarim Mateos, Jul 23, 2018.

  1. Abdelkarim Mateos

    Abdelkarim Mateos New Member


    After restore a server from old backup, I get a problem with one site. Rewrite stop woring in this site in htaccess or also if try put directives in ISPConfig -> Site -> Apache Options
    RewriteEngine On
    <IfModule mod_rewrite.c>
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/|#(.*))$
      RewriteRule ^(.*)$ /$1/ [R=301,L]
    Options +FollowSymLinks
    RewriteCond %{REQUEST_URI} !/adminpanel/$
    RewriteRule (.*)$1 [R=301,L]
    On others sites on this server modrewrite work properly.

    If try --> (

    Not Found
    The requested URL /adminpanel/ was not found on this server.

    But if try work

    Full htaccess
    Last edited: Jul 23, 2018

Share This Page