腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
2
回答
Linux
Apache2.4
.
htaccess
rewriteRule
不
工作
、
、
、
我有一个网站使用.
htaccess
重写规则,但soem不起作用。这是我的.
htaccess
文件:RewriteBase /
RewriteRule
^inicio|home|index$ index.php [QSA但是,如果我像这样更改url www.domain.com/contacto.php,它就能正常
工作
。 我认为下面这条规则应该可以完成任务,不是吗?,但升级到2.4后就停止
工作
了。Apache2.和2.4在应用
h
浏览 29
提问于2016-08-16
得票数 0
1
回答
Apache2.4
AliasMatch可以传递参数吗?
、
、
是否可以在
linux
上使用
Apache2.4
中的get传递附加的AlisaMatch参数?我想对DocumentRoot之外的文件夹进行重定向,这样
RewriteRule
就不会在.
htaccess
中
工作
了。a=$1&b=$2" 使用带有完整dir路径的在
htaccess
中使用
RewriteRule
更新确实如预期的那样
工作
。
浏览 1
提问于2018-03-21
得票数 1
1
回答
除.
htaccess
指定的文件夹外,不能访问所有文件夹
、
、
、
/project/├── framework/├── .gitignore└── web/最初有使用Directory或DirectoryMatch的解决方案,但这些在.hatccess中是不允许的。所以我不得不使用
RewriteRule
。我也
不
希望它与project名称相关联
浏览 4
提问于2022-01-21
得票数 1
回答已采纳
1
回答
在升级2.4之后,
RewriteRule
无法
工作
、
、
我把我的服务器升级到了
Apache2.4
。在做了一些配置之后,一些.
htaccess
文件就不
工作
了。
RewriteRule
^(.*)$ http://10.0.2.40/LandBank/$1 [NC,P]
RewriteRule
^(.*)$ ind
浏览 0
提问于2014-12-15
得票数 0
2
回答
使用.
htaccess
删除.php扩展
、
、
、
-f
RewriteRule
^([^/]+)/([^/]+)/$ /$1/$2.php
RewriteRule
(.*)$ /$1/ [R=301,L]` 有什么建议吗?
浏览 0
提问于2018-04-16
得票数 1
1
回答
.
htaccess
在服务器上的行为不同
、
、
、
、
因此,我有一个网站,它成功地将url参数重写到一个干净的url,但是在另一台服务器上,相同的.
htaccess
不能
工作
。-f </IfModule> 不起作用的是最后一行。在Server1上,上面的代码
工作
得很完美,但是Server2上的相同代码却不能
工作
。
RewriteRule
确实在Server2上
工作
,因为我们可
浏览 0
提问于2014-05-30
得票数 0
回答已采纳
1
回答
将除任何静态资源外的所有URL重写为小写
、
、
我在我的vhost中添加了以下内容:RewriteMap lowercase int:tolowerRewriteCond$1 [A-Z]这对于使任何传入的URL都是小写的非常有效。在
Linux
机器上,当实际文件名为大写时,这根本不起作用。(
不
,我无法控制文件的命名方式...)CentOS 7
浏览 11
提问于2017-07-12
得票数 1
回答已采纳
1
回答
使用2.4apache的
htaccess
mod_rewrite未按预期
工作
、
、
这是我所有的
htaccess
代码# This Conditions is for App
RewriteRule
^(.*).]
RewriteRule
^admin/(.*).php admin/controller.php?
浏览 3
提问于2016-05-30
得票数 0
3
回答
文件夹中断中的
RewriteRule
父级(.
htaccess
)
、
、
# /.
htaccess
RewriteBase /
RewriteRule
"^sub/(.*)" "index.php?sub=$1" 每个
浏览 4
提问于2020-02-10
得票数 1
回答已采纳
2
回答
htaccess
规范URL子目录
、
、
我和有同样的问题,但是那里的解决方案似乎在
htaccess
文件中使用了硬编码的主机名,但我做不到。下面是根目录中
htaccess
文件中的内容,它可以很好地将所有请求重定向到/public目录,但node_modules除外。<IfModule mod_rewrite.c> # Allow node_modules我在我的.
htaccess
中尝试了@SuperDuperApps
浏览 4
提问于2017-01-21
得票数 0
回答已采纳
1
回答
使用fopen('php://stdin','r')的Apache
不
工作
的RewriteMap prg
、
、
、
、
><IfModule mod_rewrite.c> RewriteBase /(.+)$ [NC] RewriteCond %{ENV:MAPTO} !=""
RewriteRule
^.*$ http://myproxiedcontent.com/%{ENV:
浏览 1
提问于2020-09-22
得票数 0
回答已采纳
1
回答
无效的命令'location',可能拼写错误或由未包含在服务器配置中的模块定义
、
、
SetEnv ENVIRONMENT "development"RewriteBase / location ~ ^/site { rewrite ^/site(.*)$ https://local.
浏览 252
提问于2019-05-29
得票数 0
1
回答
.
htaccess
RewriteRule
不
工作
、
、
我有一个使用WAMP的windows环境,这个环境
工作
得很好。我只是在设置我的Ubuntu桌面开发环境,而这个特定的mod_rewrite不起作用。我的网页根目录中的.
htaccess
RewriteRule
^files/(.*)$ files.php/$1 ServerName如果在.
htaccess
文件中创建语法错误,站点就会崩溃。 我不知道还能去哪儿找。
浏览 0
提问于2019-03-27
得票数 5
回答已采纳
1
回答
htaccess
RewriteRule
不
工作
、
、
我在yii框架中
工作
,并尝试使用
htaccess
文件重写url这是我的文件(在第一步,我尝试使用一个简单的规则)
RewriteRule
^carguide$ MainModel/index/304 [NC,L] RewriteCond-d # otherwise forward it
浏览 3
提问于2013-02-03
得票数 1
1
回答
htaccess
:
RewriteRule
不
工作
。
、
id=324,它
工作
得很好,只是它影响了其他页面。这是我的.
htaccess
文件的样子:RewriteEngine onDirectoryIndex index.php index.htmlindex.htm
RewriteRule
^([0-9]+)/$ detail.php?id=$1 最后一行使Chrome警告我在一些具有不同路径的页面上的重定向
浏览 1
提问于2013-09-08
得票数 1
回答已采纳
3
回答
RewriteRule
in .
htaccess
不
工作
、
、
我正在尝试通过使用.
htaccess
文件来实现基本的URL重写。我希望在请求第二页时加载第一页。我的.
htaccess
文件如下所示:
RewriteRule
^/doesnotexist/(.*)$ /page.php?
浏览 6
提问于2010-02-03
得票数 7
回答已采纳
1
回答
.
htaccess
RewriteRule
不
工作
、
、
我需要做以下
工作
:结果地址:
RewriteRule
^searchnews/(.*)/$ news.php?这是我的完整
htaccess
语法:Options +FollowSymLinks
RewriteRule
^shownewsid=$1
RewriteRule
^searchnews/(.*)/$ news.php?s=$1 [NC
浏览 0
提问于2012-12-23
得票数 0
1
回答
.
htaccess
RewriteRule
不
工作
、
、
、
我当前的规则(可能是错误的^^)如下: RewriteEngine On RewriteBase /
RewriteRule
^stats/(.*)$ pages/stats.php <-- not working
RewriteRule
^player/(.*)$ pages/stats_player.php?我只需要添加这两行:
RewriteRule
^stats/$ pages/stats.php
RewriteRule
^stats$ p
浏览 6
提问于2016-08-15
得票数 1
2
回答
RewriteRule
.
htaccess
不
工作
、
、
、
、
pname=$1 [L,QSA]的问题,但是在那之后,其他的
RewriteRule
不
工作
了,我不知道为什么。-f
RewriteRule
^category/(.*)$ /cat.php?name=$1 [QSA,L] </IfModule&
浏览 3
提问于2014-08-14
得票数 1
回答已采纳
2
回答
htaccess
RewriteRule
不
工作
、
、
、
pagina=ciao转换为http://mysite.it/ciaoRewriteEngine On我知道
RewriteRule
中有些地方出了问题,但我不知道如何只在home.php?
浏览 2
提问于2015-02-25
得票数 1
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
WordPress:开启多站点
网站安全设置
windows主机下wordpress实现伪静态详解
Apache mod_rewrite 和Cobalt Strike Malleable C2 Profiles 的自动转换
WP菜鸟建站20:怎样设置wordpress伪静态,来做好URL优化?
热门
标签
更多标签
云服务器
ICP备案
对象存储
腾讯会议
云直播
活动推荐
运营活动
广告
关闭
领券