腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
搜索
关闭
文章
问答
(3548)
视频
开发者手册
清单
用户
专栏
沙龙
全部问答
原创问答
Stack Exchange问答
更多筛选
回答情况:
全部
有回答
回答已采纳
提问时间:
不限
一周内
一月内
三月内
一年内
问题标签:
未找到与 相关的标签
筛选
重置
1
回答
动态
DirectoryIndex
(Regex
DirectoryIndex
?)
在Apache中,是否可能有一个动态/正则
DirectoryIndex
指令?正常的
DirectoryIndex
会这样做:server/DIR1/DIR2 --> server
浏览 5
提问于2015-04-30
得票数 1
回答已采纳
2
回答
DirectoryIndex
不起作用
我打开/etc/apache2/apache2.conf并添加一行:然后重新启动apache2。
浏览 5
修改于2011-06-28
得票数 6
2
回答
.htaccess和
DirectoryIndex
/index.php [L]ps: 1-即使我尝试请求index.php,它也会打开main.html
浏览 0
修改于2015-10-25
得票数 0
1
回答
命令'
DirectoryIndex
‘无效
当我试图访问根目录中的一个开发站点时,我得到了500Internal Server Error,并在apache错误日志中看到了这条消息:Invalid command '
DirectoryIndex
'这似乎来自于我的站点.htaccess文件中的
directoryIndex
声明。删除它可以消除错误,但随后站点将显示为目录索引,而不是尝试呈现实际的index.php文件。
浏览 0
提问于2020-12-30
得票数 0
1
回答
条件.htaccess 404
DirectoryIndex
是否可以在发生404事件时更改.htaccess中的
DirectoryIndex
?我有一个场景,如果有一个404,我希望将
DirectoryIndex
更改为index.htm而不是index.php。但是,默认情况下,我必须在.htaccess中声明
DirectoryIndex
,所以我要寻找类似于if else语句的语句。if 404else这个是可能的吗?谢谢。
浏览 2
提问于2011-02-19
得票数 2
1
回答
SEO -
DirectoryIndex
重复内容
我在.htaccess中使用
DirectoryIndex
指向index.php,因此您可以转到site.com/menu/或site.com/menu/index.php,获取其他6个目录的相同内容,依此类推这是否会导致任何搜索引擎优化问题,或者搜索引擎是否足够聪明,能够理解它是一个
DirectoryIndex
,并且只对结果进行一次索引?
浏览 5
提问于2012-04-06
得票数 0
回答已采纳
1
回答
DirectoryIndex
到外部站点
是否有任何方法在Apache中设置
DirectoryIndex
,使其指向外部网页?例如,任何访问mysite.com/somefolder的人都应该重定向到google.com。我知道您可以将重定向放在文件夹本身的
DirectoryIndex
指定的文件中,但我想知道是否可以跳过这一步。 谢谢!
浏览 0
提问于2010-01-13
得票数 0
3
回答
.htaccess
DirectoryIndex
不工作
我试过了关于
DirectoryIndex
所能找到的一切,但如果不使用文件名…,就无法使它工作。(index.html)
DirectoryIndex
system.php
浏览 3
修改于2013-11-10
得票数 1
2
回答
.htaccess中的条件
DirectoryIndex
有没有可能使.htaccess文件中的
DirectoryIndex
值基于IP有条件的,这样-例如,我的IP see的
DirectoryIndex
为index.html,而其他所有人都将
DirectoryIndex
浏览 1
修改于2009-10-21
得票数 3
回答已采纳
2
回答
.htaccess,
DirectoryIndex
不能正常工作
我对htaccess很陌生,我尝试使用
DirectoryIndex
来修改我的img文件夹的默认页面,以便当用户尝试键入我的img文件夹时,我可以重定向到我的主页。在我的img文件夹的.htaccess文件中
DirectoryIndex
/lserev/index.php 当我尝试键入类似
浏览 3
修改于2014-06-17
得票数 0
回答已采纳
1
回答
Apache:没有匹配的
DirectoryIndex
在apache日志中: Cannot serve directory /var/www/html/moodle/singapur/: No matching
DirectoryIndex
(index.html
浏览 0
提问于2018-09-27
得票数 1
1
回答
Apache2
DirectoryIndex
问题
(例如) DocumentRoot /var/www/vhosts/bsah_dev/mysite
DirectoryIndex
AllowOverride None <Directory /var/www
浏览 6
提问于2011-06-21
得票数 1
回答已采纳
1
回答
.htaccess
DirectoryIndex
页面链接断开
在我的.htaccess文件中,
DirectoryIndex
设置为/page/main/home.html 因此,当我转到www.thisexample.com时,浏览器地址栏在实际加载www.thisexample.com
浏览 7
提问于2013-10-18
得票数 1
回答已采纳
2
回答
Apache错误:没有匹配的
DirectoryIndex
autoindex:error] [pid 910782] [] AH01276: Cannot serve directory /home/user/public_html/app/: No matching
DirectoryIndex
浏览 469
修改于2016-05-04
得票数 1
1
回答
Symfony .htaccess
DirectoryIndex
不工作
symfony应用程序部署到生产中,我已经将symfony应用程序放在根文件夹/var/www/html中,并将apache2根目录设置为/var/www/html/web,但是.htaccess文件中的
DirectoryIndex
我不明白如何让
DirectoryIndex
在.htaccess中工作。我的.htaccess文件看起来如下(它是默认生成的文件):
浏览 1
修改于2020-06-20
得票数 2
回答已采纳
1
回答
htaccess
DirectoryIndex
不符合
DirectoryIndex
index.html index.htm index.php 这应该使用html,然后使用php作为目录索引,它确实是这样做的。
浏览 2
提问于2012-10-08
得票数 0
2
回答
使用httpd ProxyPass和
DirectoryIndex
如何同时使用ProxyPass和
DirectoryIndex
?我有以下规则:
DirectoryIndex
index.html ProxyPass /endpointA http://127.0.0.1:wxyzstatic/端点获得404,因为它似乎没有试图加载的默认页面;如果我点击哪条路送我去127.0.0.1:8080/static/index.html 如何让ProxyPass和
Direc
浏览 1
提问于2016-10-13
得票数 3
1
回答
.htaccess
directoryIndex
用于重定向不工作
我需要做的是使用像这样参数的
DirectoryIndex
但如果我用这个SetEnvIf Request_URI "^.*" default_url=//xxx.xxx.xxx.xxx/english/login/ <
浏览 5
提问于2016-12-26
得票数 0
回答已采纳
1
回答
DirectoryIndex
在AliasMatch上找不到
当我说,http://example.org/projects/project1/返回一个403 Forbidden.The日志,因为: No matching
DirectoryIndex
found我尝试在vhost中显式地添加一个
DirectoryIndex
,但是没有结果。
浏览 7
修改于2015-08-15
得票数 3
回答已采纳
1
回答
使用.htaccess
DirectoryIndex
防止加载资产
我写了一个简单的并且它正确地重定向,只是没有加载任何资产。没有css,图像等,但是,当我直接加载时,它工作得很好。
浏览 0
提问于2017-11-28
得票数 0
回答已采纳
第 2 页
第 3 页
第 4 页
第 5 页
第 6 页
第 7 页
第 8 页
第 9 页
第 10 页
第 11 页
点击加载更多
领券