Redirection rules and other settings configured in the .htaccess file do not work on a website in Plesk for Linux

Follow

Comments

6 comments

  • Avatar
    Matthias Ulewicz

    Hi, 

    Mention only about adding these attributes.

    exemple: 

    Options +FollowSymLinks
    RewriteEngine On

    ErrorDocument 404 /error/404.htm
    ErrorDocument 500 /error/500.htm

     

    1
    Comment actions Permalink
  • Avatar
    Ivan Postnikov

    Hello Matthias Ulewicz

    Sorry for the late response but could you, please, clarify your request?

    If you need to convert the mentioned directives, try using the extension mentioned in this article.

    0
    Comment actions Permalink
  • Avatar
    Alejandro Hernandez

    Hi Everyone

    I have a problem with the htaccess. The main concern is, when Im using the preview website, the htaccess works, but as soon im using the real domain it's not.

    do you have any clue?

    0
    Comment actions Permalink
  • Avatar
    Martin Corby

    I have tried checking the tick box in nginx settings to enable proxy mode but this didn't help. 
    Tried the htaccess to nginx converter but the server didn't like the code produced.
    Any suggestions ?

     

    0
    Comment actions Permalink
  • Avatar
    Stefan Yakubov

    Hello, Martin Corby

    I would recommend checking if the rewrite module is enabled:

    # plesk bin apache --status | grep rewrite

    In case the command will return "rewrite       off", execute this one to enable the module:

    # plesk bin apache --enable-module rewrite

     

     

    0
    Comment actions Permalink
  • Avatar
    Martin Corby

    Stefan - Thanks for your time.

    Checked the above and the server responded : rewrite on

     

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request