Wordpress .htaccess error + api cPanel
Hello everyone, I have the following scenario:
1 - A site in wordpress in the root of the directory, which has a standard wordpress .htaccess.
2 - An application running in the subfolder "panel", which has a .htaccess and works with the cpanel API to create subdomains in that same folder.
Problem:
When the cPanel API is triggered, the wordpress .htaccess file does not let the API enter the subfolder "panel" and create the subdomain. When I remove the .htaccess file from wordpress from the root, the API works 100%.
Can someone help me? Follow the htacces.
.htaccess wordpress
.htaccess subfolder "panel"
#BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress.htaccess subfolder "panel"
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteBase /painel/
RewriteRule ^(.+)$ index.php?path=$1 [QSA,L]
# Controle dos "cones apos efetuar o cadastro
Header add Access-Control-Allow-Origin "*"
# Fim controle dos "cones apos efetuar o cadastro
#For"a a utilizar Cache-Control e Expires header
Header unset ETag
Please sign in to leave a comment.
Comments
0 comments