腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
Apache
重写
以对
admin.example.com
使用
不同
的
index.php
apache
、
.htaccess
、
codeigniter
、
lamp
、
.htpasswd
我
的
Apache
已经生疏了,但我一直在努力尝试在共享主机服务器上为一个客户端创建一个管理员。 这是一个旧
的
代码触发器站点,PHP可以根据URL指定要转到
的
位置。在.htaccess中,我尝试用以下命令
重写
: RewriteCond %{HTTP_HOST} ^staging\.admin\.example\.com$ RewriteRule ^$ "http\:\/\/staging\.example\.com\/admin\.index\.php"[L]
浏览 3
提问于2019-01-12
得票数 0
回答已采纳
1
回答
如何基于sudomains
的
mod_rewrite url
apache
、
.htaccess
、
mod-rewrite
我想要实现
的
是下面的
apache
mod_rewrite:*.example.com/**/* ->
index.php
/$1/$2portal.example.com/ ->
index.php
/portal
admin.example.com
浏览 3
提问于2014-04-30
得票数 0
回答已采纳
1
回答
.htaccess子域
重写
(与其他问题
不同
!)
.htaccess
我希望将
admin.example.com
/test/
重写
为
admin.example.com
/
index.php
?site=test。 我已经做了充分
的
研究,但还没有能力这样做。
浏览 0
提问于2009-12-11
得票数 0
2
回答
Express.js应用程序在请求url中添加一个额外
的
斜杠
javascript
、
node.js
、
apache
、
express
我正在
Apache
2服务器上运行一个
Apache
2 web应用程序。现在,这个应用程序是非常基本
的
,我所要做
的
就是将请求URL打印到控制台。相反,它打印//something (请注意开头
的
额外斜杠)。这意味着我编写
的
任何路由处理程序都会被抛出。目前,我真的不知道是什么导致了这一切。有一点可能是相关
的
,那就是我正在
使用
Apache
的
mod_rewrite来删除www。在URL
的
开
浏览 2
提问于2021-03-02
得票数 0
回答已采纳
1
回答
尝试在Ubuntu14.04上安装带有
Apache
的
SSL
ssl-certificate
、
apache-2.4
、
ubuntu-14.04
我试图在运行Ubuntu14.04和
Apache
的
服务器上安装它。我
使用
了下面的教程来设置
Apache
https://www.digitalocean.com/community/tutorials/how-to-set-up-
apache
-virtual-hosts-on-ubuntu服务器有一个仅在HTTP上运行
的
预先存在
的
站点。 该站点
使用
两个子域
admin.example.com</e
浏览 0
提问于2014-12-28
得票数 5
回答已采纳
1
回答
如何对laravel 5中子目录
使用
子域替换
php
、
laravel
、
subdomain
我在Windows中
使用
的
是laravel5.2和XAMPP,并且我想
使用
子域而不是子目录,例如,
admin.example.com
(用于所有管理内容)而不是example.com/admin。我认为这将是很棒
的
,因为到目前为止我可以将前端和后端分开。我创建了一个虚拟主机并将其命名为"example.com“在
apache
中,我更改了我
的
主机文件:127.0.0.1
admin.example.
浏览 1
提问于2016-08-20
得票数 1
1
回答
在Linux和Windows上
重写
URL?
.htaccess
我想要做
的
是更改url
的
一部分。在我
的
站点
的
所有urls中,都有"
index.php
“。示例:"domain.com/
index.php
?action=area“。我想把"
index.php
“改成"view”。示例:"domain.com/view?action=area“。 据我所知,这可以通过htaccess来改变。
浏览 1
提问于2013-01-22
得票数 0
回答已采纳
1
回答
php
apache
-反向代理双斜杠
php
、
apache
当我
使用
apache
反向代理时,我对引导双双斜杠有问题。($_SERVER‘’总是以//开头,除非我直接访问root用户。配置ProxyPassReverse /admin/ http://
admin.example.com
/ ProxyPass
浏览 1
提问于2013-03-03
得票数 3
回答已采纳
1
回答
如何将www.example.com/umbraco指向
admin.example.com
iis
、
umbraco
、
umbraco7
我有要求指向www.example.com/umbraco到
admin.example.com
在iis.When用户访问
admin.example.com
它应该加载umbraco后台办公室。提前感谢
浏览 0
提问于2017-08-04
得票数 0
2
回答
让我们用动态子域加密
apache-2.4
、
virtualhost
、
lets-encrypt
、
wildcard-subdomain
设置是这样
的
。我有一个域,例如example.com,我用VirtualDocumentRoot安装了
Apache
2,这样我就可以简单地将子域指向特定
的
文件夹:安装让我们用:sudo certbot --
apache
-d example.com -d
admin.example.com</e
浏览 0
提问于2018-03-04
得票数 0
回答已采纳
1
回答
如何编写.htaccess并保护网站文件和文件夹
php
、
laravel
、
.htaccess
我用laravel开发了一个网站,但问题是,如果有人知道文件
的
名称,他就可以直接访问该网站
的
文件,这是我不想要
的
app Http//localhost:8080/JobScholar/app/http://localhost:8080/JobScholar/User.php/我
的
.-f Rewri
浏览 0
提问于2017-09-10
得票数 0
2
回答
如何在一个域名上提供两个laravel应用程序?
php
、
linux
、
laravel
、
nginx
、
server
我有两个这样
的
laravel应用程序: - dashboard我试图在linux机器上为他们服务,我似乎不能让他们一起工作。我想要两个像这样
的
urls: server_name test.example.co; root /var/www/
浏览 2
提问于2021-02-21
得票数 1
回答已采纳
4
回答
在
使用
休眠框架和lighttpd时去掉URL中
的
index.php
php
、
mod-rewrite
、
frameworks
、
lighttpd
、
recess
我
使用
的
是带有lighttpd
的
recess php框架。有没有人知道如何
使用
以下网址
的
较短urls: --“你们有mod_rewrite吗?--是:打开浏览器到您解压
的
位置我确实在lighttpd上启用了mod_rewrite,并且我删除了
index
浏览 1
提问于2010-04-16
得票数 1
回答已采纳
2
回答
在不影响其他网站
的
情况下限制对网站
的
直接IP访问
apache-2.2
、
apache2
如果您直接向服务器输入IP地址,它将带您到其中一个站点,我希望限制此行为,因此我
使用
了以下修补程序: Redirect 403 / ServerName
浏览 0
提问于2021-04-04
得票数 1
1
回答
当我用
Index.php
加载主页时,我得到了一个404,但是
index.php
可以直接链接,为什么?
php
、
html
、
apache
我似乎不明白为什么我
的
Homepage突然拒绝直接加载,即:www.mysite.com/,但是只有当您输入www.mysite.com/
index.php
时才加载比较 http://www.propasiarealty.com/
index.php
/Bellow是Filezilla
的
浏览 1
提问于2015-07-27
得票数 4
回答已采纳
2
回答
htacess
重写
规则适用于IE,但不适用于firefox和chrome
apache
我在
apache
上有这个
重写
规则,可以完美地重定向到我想在ie上
的
站点,而不是firefox或chrome上。我想知道为什么在这些浏览器上表现
不同
??!!这是我
的
apache
重写
配置 RewriteLog "/opt/
apache
/logs/rewrite.log" RewriteCond=on Rewr
浏览 2
提问于2012-12-07
得票数 0
回答已采纳
1
回答
apache
2 VirtualHost子域配置不起作用
apache
、
subdomain
所有我想要
的
是,www.example.com重定向到example.com,这是工作,但我不能添加另一个VirtualHost,这将允许管理员
的
admin.example.com
。:80>DocumentRoot /var/www/html CustomLog ${
APACHE</
浏览 2
提问于2016-07-16
得票数 0
1
回答
我如何使example.com/忠告成为vhost
apache-2.4
、
virtualhost
所以我不知道这种设置叫什么,所以我很难搜索它,看看我是否在正确
的
方向上前进。我现在拥有的www.example.com/advice ->论坛我
使用
Apache
2.4.6在centos7上运行。</V
浏览 0
提问于2016-11-23
得票数 0
回答已采纳
1
回答
Drupal8+ Lighttpd某些页面由于URL
重写
而抛出404错误
drupal
、
url-rewriting
、
drupal-8
、
lighttpd
、
clean-urls
我们正在设置我们
的
Drupal8服务器,并且遇到了干净URL
的
问题。我们正在
使用
URL
重写
规则来处理干净
的
URL,但是这会产生一个问题,因为一些D8 URL包含'.‘。我们是否需要以
不同
的
方式处理干净
的
URL,或者是否可
以对
重写
规则进行更新?/(.*)$" => "/web/
index.php
?(.*)$" => &q
浏览 15
提问于2018-08-17
得票数 0
1
回答
mod_rewrite
index.php
将https重定向到http
apache
、
.htaccess
、
redirect
、
mod-rewrite
、
ssl
我有一个网站,在那里我需要推动每一个请求通过
index.php
。我也希望从http重定向到每个网站上
的
https,只有一个例外(文件夹/free)。这听起来像琐碎
的
任务,但我仍然有问题。我
的
.htaccess配置: SetEnv CAKEPHP_DEBUG 1 RewriteRule ^(.*)$
浏览 3
提问于2016-05-11
得票数 1
回答已采纳
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
对象存储
实时音视频
云点播
活动推荐
运营活动
广告
关闭
领券