ThinkPHP 5.0 rewrite规则
来源:互联网 发布:shell编程能做什么 编辑:程序博客网 时间:2024/05/21 07:48
.htaccess配置:
文件路径:
D:\phpStudy\WWW\mytpshop.com\public\.htaccess
内容:
Options +FollowSymLinksRewriteEngine OnRewriteCond %{REQUEST_FILENAME} !-dRewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^ index.php [L]
直接把上面的规则放到public下面的那个.htaccess里面就可以了。
v-hosts文件内容:
<VirtualHost *:80> DocumentRoot "D:\phpStudy\WWW\mytpshop.com\public" ServerName mytpshop.com ServerAlias www.mytpshop.com <Directory "D:\phpStudy\WWW\mytpshop.com\public"> Options FollowSymLinks ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted </Directory></VirtualHost>
访问的时候就直接:
域名+模块+控制器+方法访问即可!
http://mytpshop.com/admin/products/create
参考链接:https://docs.golaravel.com/docs/5.1/installation/
阅读全文
0 0
- ThinkPHP 5.0 rewrite规则
- Rewrite 规则
- Rewrite规则
- Rewrite规则
- thinkphp 5.0 验证规则
- ThinkPHP 利用.htaccess文件的 Rewrite 规则隐藏URL中的 index.php
- ThinkPHP 利用.htaccess文件的 Rewrite 规则隐藏URL中的 index.php
- ThinkPHP 利用.htaccess文件的 Rewrite 规则隐藏URL中的 index.php
- ThinkPHP 利用.htaccess文件的 Rewrite 规则隐藏URL中的 index.php
- ThinkPHP 利用.htaccess文件的 Rewrite 规则隐藏URL中的 index.php
- thinkphp nginx 支持rewrite
- nginx配置ThinkPHP Rewrite
- nginx Thinkphp rewrite
- thinkphp rewrite rule
- Apache rewrite规则写法
- Apache URL rewrite规则
- Apache Rewrite 规则详解
- SupeSite Rewrite规则 (7.0)
- 有效的括号序列判断
- Matlab 使用最小二乘法拟合球面(待验证)
- PAT basic 1021
- Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with multiple
- 多边形的面积求法
- ThinkPHP 5.0 rewrite规则
- 安卓中透明度的修改
- Android 自定义view实现动态柱状图。
- PHP的ZMQ扩展zeromq源码安装
- Android 简单总结Binder通信机制
- jQuery程序化触发a标签点击事件
- 约瑟夫问题(动态规划解法)
- 快速幂取模
- Hdoop 3.0 分布式配置