Comments (3)
这个问题是重写规则没有找到入口文件,如果你是Apache的话,
有没有试过修改public文件夹下的.htaccess
其中有一行这么写的:RewriteRule ^(.)$ index.php/$1 [QSA,PT,L]
改成:RewriteRule ^(.)$ index.php?=/$1 [QSA,PT,L]
from thinkphphelper.
还是不行,tph2真的是放在public下吗?按照tp5的逻辑网址从入口文件pubilc/index.php进去,访问到../application里,没有修改application里的代码,好像不能从网址直接调用到pubilc/tp2文件夹吧?什么原理?
from thinkphphelper.
问题解决了,是我的环境配置错误,我的脑子一定是瓦特了,好低级的错误。
from thinkphphelper.
Related Issues (16)
- 分页问题
- 大侠,能不能在readme里讲下tph2该如何部署和使用 HOT 2
- TP5.1支持 HOT 3
- linux下区分大小写,导致频繁报错,无法使用。 HOT 1
- 生成后不能访问 HOT 2
- Base table or view not found HOT 1
- 神器! 回头试试集成layUI看看。好像目前不支持tp5.1。 HOT 5
- Class 'app\tph2\Controller\Base' not found HOT 2
- 进入生成器配置后会出现页面无法访问,跳转到空页面 HOT 1
- tp6的版本什么时候有? HOT 1
- 列表页链接问题 HOT 1
- 希望生成 action 的时候,支持 'ACTION_SUFFIX' HOT 1
- 这个怎么打开?
- 请问在thinkphp5中该如何使用 HOT 1
- tph2最新控制器里模板找不到 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from thinkphphelper.