腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
index.php
文件
一直
重定向
到
不存在的index.html
文件
?
php
、
redirect
每次我尝试访问我网站上的
index.php
文件
时,它都会自动地将我
重定向
到
一个index.html页面。我在.htaccess中没有
重定向
。我的wordpress站点在一个子域中,但它每次都将我
重定向
到
主域。我怎么才能摆脱这种
重定向
?
浏览 0
提问于2019-02-15
得票数 0
1
回答
http://localhost:80类未注册
apache
、
windows-7
、
wamp
、
bitnami
我安装了Bitnami wamp堆栈,尽管我的安装可以通过http:// nameofmy膝上型计算机/站点访问,但每次启动
apache
时都会出现以下错误:我找不到任何与此有关的东西。
浏览 2
提问于2014-06-18
得票数 1
2
回答
htaccess mod_rewrite :将根
重定向
到
文件夹
.htaccess
.*) dir/file.php 如何才能将根目录
重定向
到
文件夹
,而不会出现错误403?
浏览 3
提问于2011-06-16
得票数 1
2
回答
与
重定向
到
index.php
和
文件夹
的冲突
apache
、
.htaccess
、
redirect
我租了一个
Apache
网络服务器。
文件夹
体系结构如下所示: RewriteRule (.*) /
index.php
?$1
浏览 2
提问于2017-06-01
得票数 2
回答已采纳
1
回答
Apache
(用Nginx)
重定向
目录清单
apache-2.2
、
nginx
、
redirect
、
indexes
、
directory-listing
我已经在
Apache
前面设置了Nginx作为反向代理。一切似乎都很顺利,尽管:http://127.0.0.1/directory 我希望看到
index.php
-相反,
Apache
将
重定向
到
:http://127.0.0
浏览 0
提问于2011-07-13
得票数 0
2
回答
使用AliasMatch和/或htaccess将url
重定向
到
子
文件夹
apache
、
.htaccess
、
mod-rewrite
我设置了以下内容,并且我的域(假设是abc.com)指向src
index.php
index.php
我想
重定向
所有的要求abc.com/博客服务
从
src/博客
文件夹
和休息
从
src
文件夹
。问题是,像abc.com/blog/任何东西都会转到src/
index.php
,而应该转到blog/
index.php
编辑src/
浏览 2
提问于2014-01-23
得票数 0
1
回答
使用
apache
mod-rewrite
重定向
用户请求
apache
、
mod-rewrite
我有以下重写规则将所有内容
重定向
到
index.php
RewriteCond %{REQUEST_URI} (/[^.]*|\.)$ [NC]现在我需要修改它以支持以下内容:当用户试图访问domain.tld /domain.tld/...时,将他
重定向
到
www.domain.tld。将他
重定向
(永久
重定向
)
到
ke
浏览 3
提问于2012-06-27
得票数 0
1
回答
Mod_Rewrite反向Url结构
.htaccess
、
url
、
url-rewriting
我想知道是否有可能学习用mode_rewrite编写的url结构。例如,我拥有的url是,并且必须有某种标题或SOMESITE.COM? somesite.com?id=123 =title-header。有没有办法检测到这一点?
浏览 7
提问于2017-03-14
得票数 0
6
回答
如何将所有请求
重定向
到
laravel 5中的公共/
文件夹
.htaccess
、
laravel
我有一个典型的Larevel5项目结构,我需要将所有请求
重定向
到
public/。 我在一个典型的托管环境中,所以public/是我的文档根目录的一个子
文件夹
。
浏览 0
提问于2016-06-27
得票数 35
1
回答
找不到RedirectMatch
文件
apache
、
.htaccess
、
mod-rewrite
、
redirect
所以,我的web根目录中有一个admin.php
文件
,我希望每次有人写/admin时都被
重定向
到
那个/admin.php。我在我的htaccess上写的 然后,我尝试使用另一个(也是不存在的
文件夹
)
重定向
<
浏览 2
提问于2014-11-30
得票数 2
回答已采纳
1
回答
使用
index.php
将子目录名
重定向
到
漂亮URL
apache
、
.htaccess
、
mod-rewrite
、
laravel-4
我在
Apache
服务器上有一个基于框架(Laravel 4)的网站,它附带了一个.htaccess
文件
,用于删除尾随斜杠,并将不存在的
文件
重定向
到
index.php
以获得漂亮的URL。我也有本地化资源
文件
的物理语言
文件夹
,如/en/images/hello.jpg。物理语言
文件夹
以这样的方式破坏.htaccess
文件
中的URL
重定向
: mysite.com/
浏览 5
提问于2014-04-10
得票数 1
回答已采纳
1
回答
Apache
从
文件夹
重定向
到
index.php
文件
apache
、
.htaccess
、
rules
我想从http://www.domain.com/customer1 to /app/
index.php
?c=customer1和http://www.domain.com/customer2 to /app/
index.php
?c=customer2
重定向
我尝试了下面的规则,但效果不佳。.*)$ /app/
index.php
?c=customer1
浏览 3
提问于2017-01-24
得票数 0
1
回答
跳过css和js的
apache
重写
apache
、
.htaccess
、
mod-rewrite
在尝试重写
apache
时,我遇到了一个问题。谢谢
浏览 3
提问于2016-03-20
得票数 0
2
回答
Laravel5.4技工在/public为现有
文件夹
提供htaccess /和路由::get
php
、
apache
、
laravel
、
.htaccess
、
laravel-5.4
然而,运行没有考虑
到
.htaccess
文件
在/public中,不管我在那里编辑了什么,它仍然没有处理它,手工服务运行在127.0.0.1:8000我希望有一条路由::获取/images
文件夹
,该
文件夹
已经位于/public,
从
htaccess条件中删除-d通常可以解决这一问题,从而使
apache
重定向
请求甚至
从
文件夹<
浏览 1
提问于2017-06-08
得票数 4
回答已采纳
2
回答
.htaccess,DirectoryIndex不能正常工作
php
、
apache
、
.htaccess
我对htaccess很陌生,我尝试使用DirectoryIndex来修改我的img
文件夹
的默认页面,以便当用户尝试键入我的img
文件夹
时,我可以
重定向
到我的主页。在我的img
文件夹
的.htaccess
文件
中DirectoryIndex /lserev/
index.php
当我尝试键入类似localhost/lserev/img的内容
浏览 3
提问于2014-06-17
得票数 0
回答已采纳
2
回答
根和子
文件夹
中的.htaccess,每个都要
重定向
到
自己的
index.php
。
regex
、
apache
、
.htaccess
、
mod-rewrite
、
subdirectory
我有以下目录结构:/
index.php
/subfolder/
index.php
/
index.php
?子
文件夹
中的请求由根
index.php
处理,
浏览 4
提问于2011-05-23
得票数 9
回答已采纳
1
回答
用.htaccess将根
重定向
到
文件夹
php
、
apache
、
.htaccess
、
mod-rewrite
、
redirect
我的项目结构如下: /api /img我想将所有请求
从
/app
文件夹
重定向
到
子
文件夹
/api。/api/
index.php
/$1 [L] 我的
Apache
已经启用了Mod_Rewrite。有什么想法吗?
浏览 0
提问于2014-05-01
得票数 1
回答已采纳
2
回答
导致
重定向
循环的.htaccess
文件
php
、
apache
、
.htaccess
、
mod-rewrite
、
redirect
我的.htaccess
文件
导致了一个
重定向
循环,但不确定原因!这是我当前的.htaccess
文件
:# Turn on URL rewriting# Rewrite to
index.php
/URL RewriteRule ^(.*)$
浏览 4
提问于2015-06-04
得票数 0
1
回答
子
文件夹
中的html to php的.htaccess指令异常
php
、
html
、
.htaccess
、
redirect
我有一个网站,在那里我将所有带有.html的页面
重定向
到
'same name.php‘。.*)\.html$ $1.phpR
浏览 0
提问于2018-03-10
得票数 1
1
回答
奇怪而疯狂的PHP错误,清除浏览器历史记录后加载页面会导致脚本多次运行
php
、
debugging
、
session
、
domdocument
、
libxml2
this is true for production: ],session_name(SESSION['name']); //
index.php
浏览 0
提问于2020-01-08
得票数 1
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
对象存储
实时音视频
云点播
活动推荐
运营活动
广告
关闭
领券