• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

mod_rewrite problem in Plesk

C

CesarV

Guest
My client have a site with complex .htacces, but I have to migrate this site to other server with Plesk 9.2.3
and CentOS 5.4.

The actual server works perfectly (www.docol.com.br), but in the Plesk server doesn´t work. I created a subdomain
docol.expresso.net.br. If you try to access Products and Solutions: http://www.docol.com.br work perfectly, but
if you try to access http://docol.expresso.net.br this item doesn´t work.

I configure in the httpd.conf these lines:

LoadModule rewrite_module modules/mod_rewrite.so

<Directory />
Options FollowSymLinks MultiViews ExecCGI Includes
AllowOverride AuthConfig Limit FileInfo Indexes
</Directory>


.htaccess archive:

Options -MultiViews

RewriteEngine On

RewriteRule ^institucional_interna/$ institucional_interna.php [L,QSA]
RewriteRule ^ajuda$ ajuda.php [L,QSA]
RewriteRule ^institucional_interna/.*-([0-9]+)$ institucional_interna.php?id=$1 [L,QSA]
RewriteRule ^profissionais_materia/.*-([0-9]+)$ profissionais_materia.php?id=$1 [L,QSA]
RewriteRule ^profissionais_arquivos-(.+)$ profissionais_arquivos.php?tipo=$1 [NC]
RewriteRule ^eventos_interna/.*-([0-9]+)$ eventos_interna.php?id=$1 [L,QSA]
RewriteRule ^noticias/.*-([0-9]+)$ noticias.php?id=$1 [L,QSA]
RewriteRule ^imprensa_releases/.*-([0-9]+)$ imprensa_releases.php?id=$1 [L,QSA]
RewriteRule ^imprensa_publicacoes/.*-([0-9]+)$ imprensa_publicacoes.php?id=$1 [L,QSA]
RewriteRule ^galeria_view/.*-([0-9]+)$ galeria_view.php?id=$1 [L,QSA]
RewriteRule ^galeria_ambientes/.*-([0-9]+)$ galeria_ambientes.php?tipo=$1 [L,QSA]
RewriteRule ^galeria_lista/.*-([0-9]+)$ galeria_lista.php?tipo=$1 [L,QSA]
RewriteRule ^produtos_detalhe/.*-([0-9]+)/.*-([0-9]+)/.*-([0-9]+)/.*-([0-9]+)$ produtos_detalhe.php?categoria=$1&grupo=$2&linha=$3&id=$4 [L,QSA]
RewriteRule ^produtos_lista/.*-([0-9]+)/.*-([0-9]+)/.*-([0-9]+)$ produtos_lista.php?categoria=$1&grupo=$2&linha=$3 [L,QSA]
RewriteRule ^produtos_lista/.*-([0-9]+)/.*-([0-9]+)/.*-([0-9]+)/.*([0-9]+)$ produtos_lista.php?categoria=$1&grupo=$2&linha=$3&pagina=$4 [L,QSA]
RewriteRule ^produtos_linhas/.*-([0-9]+)/.*-([0-9]+)$ produtos_linhas.php?categoria=$1&grupo=$2 [L,QSA]
RewriteRule ^produtos_grupos/.*-([0-9]+)$ produtos_grupos.php?categoria=$1 [L,QSA]
RewriteRule ^revista/.*-([0-9]+)$ revista.php?ano=$1 [L,QSA]
RewriteRule ^onde_estamos/$ onde_estamos.php [L,QSA]

RewriteRule ^(institucional|noticias_lista|imprensa|eventos|profissionais|imprensa_releases_lista|produtos|fale_conosco|trabalhe_conosco|trabalhe_ofertas|trabalhe_cadastre_curriculo|lista_desejos|onde_encontrar)/?$ $1.php [L,QSA]
RewriteRule ^(profissionais_arquiteto|profissionais_decorador|profissionais_designer|profissionais_engenheiro|profissionais_revendedor|profissionais_instalador|profissionais_materia|profissionais_arquivos)/?$ $1.php [L,QSA]
RewriteRule ^(galeria_lista|profissionais_arquiteto|imprensa_publicacoes|como_chegar|planeta_agua|revista)/?$ $1.php [L,QSA]
RewriteRule ^(galeria_ambientes)/?$ $1.php [L,QSA]

RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^[^/]*/(.*) $1 [L,QSA]

What can I do to fix this problem?

Help me please.

Thanks.
 
Back
Top