腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
4
回答
使用.htaccess
隐藏
文件
apache-2.2
、
.htaccess
假设我的公共目录中有一个
index.php
文件。我添加了以下代码: readfile('404.htm
浏览 0
提问于2011-12-10
得票数 2
6
回答
切换到GET方法时表单URL的问题
php
、
html
、
forms
<form action="
index.php
?page=searchresult'" method="post"><form action="
index.php
?当我检查我的HTML代码时,一切看起来都很好,但是我最终会转到URL site.com/
index.php
?ALL THE GET-variables linedup here.
浏览 7
提问于2013-10-09
得票数 0
回答已采纳
1
回答
如果安装在文件夹中,则Yii 1.1路由问题
php
、
yii
、
yii1.x
我有一个控制器来显示一些数据,我的yii安装在一个名为api的文件夹中。但是,如果我将yii安装放在根文件夹中,并导航到localhost/mycontroller,它就可以工作。谢谢
浏览 2
提问于2018-01-12
得票数 1
回答已采纳
2
回答
如何捕获指向不存在的页面/文件的URL?
php
、
linux
、
url
让用户输入一个像www.myserver.com/randomString这样的url,我想把页面重定向到
index.php
,还能捕捉到"randomString“吗?
浏览 6
提问于2014-04-08
得票数 0
回答已采纳
3
回答
Codeigniter:获取干净的urls并删除
index.php
codeigniter
、
codeigniter-2
我想要的是去掉跟在根目录后面的
index.php
,所以把它从www.mydomain.com/
index.php
/mycontroller中去掉,只需要www.mydomain.com/mycontroller
浏览 0
提问于2012-06-27
得票数 0
回答已采纳
2
回答
如何
隐藏
Jquery中使用.load函数加载的元素
javascript
、
jquery
、
ajax
、
callback
、
jquery-load
当页面第一次加载时,我以它们为目标,并像这样
隐藏
它们:我这样做ajax load: type: "GET", data: dataString, $('.wrapperClass').load('
index.php
> <span class=
浏览 3
提问于2012-04-10
得票数 1
2
回答
为什么CodeIgniter将/
index.php
/添加到所有URL中?
php
、
codeigniter
、
mod-rewrite
、
routes
当我尝试访问诸如这样的URL时,我得到以下404:在此服务器上找不到请求的URL /
index.php
/foobar/177。文件路径与
index.php
连接的方式很奇怪,不是吗?RewriteCond %{REQUEST_URI} ^system.*Rewrit
浏览 0
提问于2012-03-19
得票数 0
1
回答
htaccess文件中RewriteRules的顺序
apache
、
.htaccess
、
mod-rewrite
$ /blah/users/
index.php
?type=$2&case=$3&offset=$4 [NC,L]
浏览 1
提问于2013-10-08
得票数 1
回答已采纳
1
回答
如何使用Javascript $.get - Yii调用控制器操作?
javascript
、
php
、
jquery
、
forms
、
yii
以前,我曾将$.get定向到资产中的一个文件,如下所示这件事做得很好。
浏览 8
提问于2014-07-29
得票数 0
回答已采纳
1
回答
mod重写以
隐藏
url
.htaccess
、
mod-rewrite
我想对www.example.com/
隐藏
对以下
php
文件的任何请求。www.example.com/
index.php
to www.example.com/ (hide
index.php
)注意:我只想
隐藏
文件而不重定向它们。例如,在
index.php
或content.
php
上
隐
浏览 0
提问于2012-05-23
得票数 1
回答已采纳
1
回答
单控制器误差404码点火器
php
、
.htaccess
、
codeigniter
、
controller
这是一个非常简单的静态网站,有几个页面,比如“主页”、“关于”等等……$route['default_controller'] = "mycontroller";$route['(:any)'] = "mycontroller/$1";// Home寻求答案
浏览 4
提问于2014-04-18
得票数 1
回答已采纳
1
回答
https url在url中要求
index.php
。怎么解决这个问题?
.htaccess
、
magento
、
url-rewriting
我们有一个magento网站www.oursite.in,当我使用http://www.oursite.in/mobiles.html时,它工作得很好(也就是说,
index.php
不是必需的/不出现在url但是当我输入https://www.oursite.in/mobiles.html时,它说404没有找到错误 https://www.oursite.in/
index.php
/mobiles.html工作得很好
浏览 0
提问于2014-02-19
得票数 0
2
回答
无法在nginx中
隐藏
index.php
以进行socialengine重写
nginx
、
url-rewriting
、
socialengine
我有以下重写规则,除了domain.com/
index.php
或domain.com之外,它们似乎在任何地方都适用。8080; root /home/user/public_html; rewrite ^(.*)$ /
index.php
?
index.php</em
浏览 2
提问于2014-02-26
得票数 2
2
回答
“不返回标签”/“url”
hreflang
因为空斜杠/“url”链接到一个链接回'/
index.php
‘的页面,所以出现了“没有返回标签”错误。谷歌网站管理员的工具不应该足够聪明地认识到这是一个有效的返回标签吗?
浏览 0
提问于2016-02-18
得票数 2
3
回答
如果url是主页(/或
index.php
),请执行此操作
php
我正在尝试使用以下代码
隐藏
我主页上的一些内容: $homepage = "/"; if($currentpage == $homepage or $currentpage == '
index.php
') {
浏览 4
提问于2014-09-04
得票数 3
回答已采纳
1
回答
除特定子目录外,htaccess将所有文件重定向到
index.php
.htaccess
我有一个站点,除了特定子目录中的请求之外,所有请求都应该转到
index.php
,该子目录应该转到子目录/
index.php
。#RULE 2#RULE 3 RewriteRule ^/sub/([^/\.]+)/?$ /sub/
index.php</em
浏览 0
提问于2013-03-12
得票数 1
2
回答
PHP
:提交传递页面名称的表单到操作
php
、
html
、
forms
我在我的项目中使用一个简单的页面开关来更改页面,页面url听起来像domain.com/
index.php
? page =some。我必须提交一个表单到self页面,并使用GET或POST将表单值附加到url,因此尝试使用<form action="
index.php
?page=some$var=some" method="GET">期望
PHP
自动追加输入值,但是没有任何事情像预期的那样发生,因为我被重定向到
index.php
?。所以我试着使用$_SERVER[
浏览 6
提问于2016-04-20
得票数 0
回答已采纳
1
回答
生产服务器上的Yii和.htaccess文件
.htaccess
、
yii
、
production-environment
本地主机上的 :提供的默认网址是,现在,运行的URL是 http://localhost/connect_donors
浏览 2
提问于2013-04-11
得票数 3
回答已采纳
4
回答
更改模块url在yii中
php
、
yii
我有下面的url ,我想将这个url修改为下面的,使用htaccess和urlmanager,然后要做什么呢?
浏览 9
提问于2014-01-08
得票数 1
回答已采纳
1
回答
PHP
-动态链接问题
php
、
html
、
dynamic
我正在测试如何使用
php
动态显示页面链接,并且能够使用我的
index.php
中的以下代码实现它:<a href="
index.php
?page=about">About</a><a
浏览 0
提问于2019-03-21
得票数 0
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
王思聪普斯资本官网,为什么URL中不去掉index.php?
隐藏和伪装Nginx和PHP版本号
Window下的几种隐藏技术
Apache配置重定向
ThinkPHP5开发连载四之入口文件
热门
标签
更多标签
云服务器
ICP备案
实时音视频
即时通信 IM
对象存储
活动推荐
运营活动
广告
关闭
领券