I need to use wordpress/woocommerce functions on codeigniter. I've tried the Woocommerce Rest Api and it is extremely slow. So for an alternative i've copied wordpress/woocommerce to codeigniter upload folder. In the index.php
in codeigniter i've added
require_once('/home/sites/example.co.uk/public_html/retail/uploads/wordpress/wp-load.php');
require_once('/home/sites/example.co.uk/public_html/retail/uploads/wordpress/wp-blog-header.php');
Which is fine, i can now use wordpress functions but my codeigniter urls have been changed. I've removed the .htaccess from the Wordpress folder and urls are still changed. How do i solve?
I solved this by changing the site_url
to wp_site_url
in the wordpress folder. Now the urls in codeigniter aren't being changed.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.