T
T
Tsigulev Vitaly2013-03-15 15:00:51
CakePHP
Tsigulev Vitaly, 2013-03-15 15:00:51

How to Integrate CNC Wordpress into a CakePHP Website?

Task
Integrate Wordpress into a CakePHP site.
Given
In the webroot of CakePHP, Wordpress is installed, the site works on this Wordpress, but the CNC pages do not work, i.e. this is how it works:
site.ru/monitoring/?page_id=724 this is how CakePHP gives an
error %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php [QSA,L] .htaccess WP #Exchangers monitor begin RewriteEngine On RewriteBase /
RewriteRule ^monitoring\/pda\.html(.*)$ wp-content/plugins/exchangers-monitor/pda.php$1
RewriteRule ^lite\.html(.*)$ wp-content/plugins/exchangers-monitor/lite .php$1
#Exchangers monitor end
AddDefaultCharset utf-8
#Credit automats monitor begin
RewriteEngine On
RewriteBase /
RewriteRule ^lite_credit\.html(.*)$ wp-content/plugins/credit-automats-monitor/lite.php$1
#Credit automats monitor end
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteRule ^lite_credit\.html$ //wp-content/plugins/credit-automats-monitor/lite.php [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule. /index.php [L]
# END WordPress
#Exchangers monitor begin
RewriteEngine On
RewriteBase /
RewriteRule ^EXCHANGE/([0-9]*)/([^\-]*)\-([^\-]*)\ -sort/?$ index.php?page_id=$1&f=$2&c=$3&q=sort
RewriteRule ^EXCHANGE/([0-9]*)/([^\-]*)\-([^\.] *)/?$ index.php?page_id=$1&f=$2&c=$3&q=tx
#Exchangers monitor end

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question