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

    Hi.


    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

    midomain.com
    Code:
    RewriteEngine On
    <IfModule mod_rewrite.c>
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/|#(.*))$
      RewriteRule ^(.*)$ /$1/ [R=301,L]
    </IfModule>
    
    Options +FollowSymLinks
    RewriteCond %{REQUEST_URI} !/adminpanel/$
    RewriteRule (.*) http://www.redirectiondoamin.com/$1 [R=301,L]
    </IfModule>
    
    On others sites on this server modrewrite work properly.

    If try http://www.midomain.com/adminpanel/ --> ( http://www.redirectiondoamin.com/adminpanel/)

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

    But if try http://www.redirectiondoamin.com/adminpanel/ work


    Full htaccess
     
    Last edited: Jul 23, 2018

Share This Page