Jump to content

DirectAdmin + OpenLiteSpeed = Links permanentes com problemas


brunoalves

Recommended Posts

Estou com um problema chato, sei que o para o wordpress funcionar com links permanentes eu tenho que alterar o .htacess, até ai tudo bem.

 

Porem todo site que eu altero o .htacess eu tenho que dar um restart ou reload no openlitespeed para que as regras do .htacess funcionem, tem como resolver isto?

 

 

Link to comment
Share on other sites

Buno bom dia :

crie o seguinte arquivo abaixo::

/etc/cron.d/openlitespeed_htaccess_scan

adicoine a este:

*/3 * * * * root if ! find /home/*/domains/*/*_html/ -maxdepth 2 -type f -newer /usr/local/lsws/cgid -name '.htaccess' -exec false {} +; then /usr/local/lsws/bin/lswsctrl restart; fi

 Esta cron faz com que o OLS leia as modificações e novos arquivos .ht criados de forma correta.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Do you agree with our terms?