phpcms urlrule不生效的解决办法:1、生成html静态文件;2、需要重写“.htaccess”的url规则“RewriteRule”。
2020-07-18回答次数0访问次数2596
去掉url index.php的方法:首先启用mod_rewrite;然后创建htaccess文件,添加内容为“RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]”即可。
2021-03-29回答次数0访问次数1274
tp3.2.3隐藏index.php的方法:首先找到并打开“.htaccess”文件;然后修改内容为“RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]”即可。
2021-05-13回答次数0访问次数1761
iis6隐藏“index.php”的方法:首先打开“httpd.ini”文件;然后设置伪静态规则为“RewriteRule ^(?!/index.php)(?!/admin.php)(.*)$ /index.php/$1 [L]”即可。
2020-08-26回答次数0访问次数1940
thinkphp index.php隐藏的方法:1、在httpd.ini文件添加内容“RewriteRule (.*)$ /index\.php\?s=$1[I]”;2、在Nginx.conf中配置转发规则“rewrite ^(.*)”。
2020-12-04回答次数0访问次数2513
php替换问号的方法:1、打开相应的配置文件;2、用htaccess重写即可,代码如“RewriteRule ^example.com/index.php/(.*)/(.*)$ example.com/index.php?a...”。
2021-12-08回答次数0访问次数1350
tp5不能访问index.php的解决办法:首先找到htaccess文件;然后修改规则内容为“RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]”即可。
2021-06-16回答次数0访问次数3411
php隐藏url的设置方法:首先找到并打开“.htaccess”文件;然后配置规则为“RewriteEngine on RewriteRule ^RegStuds/ regstuds.php”并保存即可。
2020-10-16回答次数0访问次数3006
url去掉index.php的方法:首先启用“mod_rewrite”;然后在根目录下的“.htaccess”文件中添加内容为“RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]”即可。
2020-09-03回答次数0访问次数2381
tp5隐藏index.php的方法:首先打开“pullic/static/.htaccess”目录;然后修改内容为“RewriteRule ^(.*)index.php?s =1 [QSA,PT,L]”;最后保存文件即可。
2020-07-31回答次数0访问次数3777
wamp隐藏index.php的方法:首先找到并打开“httpd-vhost.conf”文件;然后在“httpd-vhost.conf”文件下添加重写规则如“RewriteRule ^(.*)$/index.php/$1[L]...”即可。
2021-05-18回答次数0访问次数1255
php获取不到网址中的值的解决办法:1、查看url规则;2、将规则修改为“RewriteRule ^/member/editprivilege/([0-9]+) /access.php?_u=mobile/...”即可获取。
2022-01-06回答次数0访问次数1346
t3隐藏index.php的方法:首先修改配置文件;然后在根目录新建.htaccess文件;最后输入内容“RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]...”并保存即可。
2021-06-01回答次数0访问次数1344
php实现网页伪静态的方法:首先在服务器根目录创建一个“.htaccess”文件;然后添加内容为“RewriteRule ^index-(\d+)\.html$ index.php?id=$1”即可。
2021-04-01回答次数0访问次数4544
vue打包刷新报错的解决办法:1、将vue router的“mode”改成“hash”;2、修改Nginx为“location / {root ...index ...try_files $uri $uri/ /index.html;}”;3、修改Apache为“RewriteRule . /index.html [L]”并保存即可。
2022-12-30回答次数0访问次数1989
1、nginx伪动态划定规矩rewrite^(.*)/tags.html$1/tags.php;rewrite^(.*)/tags/(.*)-1.html$1/tags.php?/$2/$3;或rewrite^([^\.]*)/tags.html$1/tags.php;rewrite^([^\.]*)/tags/(.*)-([0-9]+).html$1/tags.php?/$2/$3;2、.htaccess文件伪音讯规定RewriteBase/RewriteRule^tags\.html$/ta
2023-05-21回答次数0访问次数519
ci框架去除index.php的方法:首先打开apache的配置文件并修改;然后在CI的根目录下建立“.htaccess”;接着修改内容为“RewriteRule ^(.*)$ /CI/index.php/$1 [L]”;最后重启即可。
2020-09-11回答次数0访问次数2313
tp5.0去掉“index.php”的方法:首先找到本地服务器中的WWW目录;然后找到“tp5.0”的框架,并找到“public”文件;接着找到并打开“.htaccess”文件;最后删除代码“RewriteRule”即可。
2020-04-25回答次数0访问次数3423
thinkphp5 url重写不行的解决办法:1、查看httpd.conf配置文件中是否加载了mod_rewrite.so模块;2、将AllowOverride None中的None改为All;3、修改Apache配置文件.htaccess为“RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]”保存即可。
2022-12-12回答次数0访问次数1296
宝塔部署thinkphp5报错的解决办法:1、打开宝塔服务器,安装php pathinfo扩展并启用;2、配置“.access”文件,内容为“RewriteRule ^(.*)$ index.php?s=/$1 [QSA,PT,L]”;3、在网站管理里面,启用thinkphp的伪静态即可。
2022-12-19回答次数0访问次数1142