redpacket | 微信小程序、拼图红包、支持微信企业支付到零钱,前后台源码(PHP) | Chat library
kandi X-RAY | redpacket Summary
kandi X-RAY | redpacket Summary
微信小程序、拼图红包、支持微信企业支付到零钱,前后台源码(PHP)
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of redpacket
redpacket Key Features
redpacket Examples and Code Snippets
Community Discussions
Trending Discussions on redpacket
QUESTION
I was developing in XAMPP environment on my local machine, and everything is fine. I can access my controller like this:
localhost/myproject/index.php/catalog/home/get
catalog
is the sub folder under controllers
.
However, after I uploaded my project to the server. I should be able to access my page by the following url:
http://www.example.com/index.php/catalog/home/index
but this gives me a 404 page.
The only url works is the default page I defined in the route.php
file:
$route['default_controller'] = 'welcome';
In the config.php
, I set my base_url to be http://www.example.com/
All my controllers' first letter are capitalized and I'm using CI 3.1X. My server is a linux which uses nginx instead of apache. I tried to modify or delete my .htaccess file, but it doesn't solve my problem.
I'm not looking for an exact answer, I would like to know how to debug my code in this situation.
Here is an example of one of my controllers:
...ANSWER
Answered 2017-May-16 at 09:25it looks like you forgot to update .htaccess file on the server
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install redpacket
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page