In the file config.php:
- base_url = empty
- index_page = empty
In the autoload.php file:
- helper = url
In the file config.json:
- web_server> 404_handler = /index.php
In the external htaccess:
- RewriteEngine on
- RewriteCond $ 1! ^ (Index \ .php | images | robots \ .txt | assets)
- RewriteRule ^ (. *) Index.php / $ 1 [L]
The links are left only by placing the driver and the parameters if required:
- <p> <a href="Test?id=unID"> Go to show </a> </ p>
Can u please give a detail of how u made it work, still struggling with mine.
Thanks for feedback
It was as simple as copying all the files in the www folder of phpdesktop, and making the configuration indicated above, I explain:
In the config.php file of codeigniter, the base_url left empty just like the index_page.
Then in the file autoload.php of codeigniter just place the url helper for the test, then you can load what you need.
In the config.json file of phpdesktop, in the line of web_server> 404_handler, place index.php
And the file htacces of the root of codeigniter leaves it with the following configuration:
RewriteEngine on
RewriteCond $ 1! ^ (Index \ .php | images | robots \ .txt | assets)
RewriteRule ^ (. *) Index.php / $ 1 [L]
And with that I'm running without problems, I've even used it to show locally, websites and demo applications to customers.
I hope I helped you with this. regards
In the autoload.php file:
- $autoload['helper'] = array('url', 'file');
In the file setting.json:
XMLHttpRequest cannot load http://localhost/product/product_data. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1' is therefore not allowed access.
send @ jquery-3.2.1.js:9566