.htaccess

.htaccess

文章 36 浏览 19

如何禁用“上传”中的脚本使用 .htaccess 的文件夹?

如何使用 .htaccess 禁用“上传”文件夹中的脚本?…

羁绊已千年 2024-10-09 09:30:47 0 0

Codeigniter,使用查询字符串从基于段的 URL 获取变量

我已经从我的url中删除了index.php,但现在我需要从url中获取一些变量,CI解决方案是更新config.php, $config['uri_protocol'] = "PATH_INFO" $confi…

坚持沉默 2024-10-09 08:54:55 0 0

如何 mod_rewrite 我的 URL 来隐藏子文件夹?

我的 URL 是: http://website.com/folder/blah.php 如何编写重写规则,以便请求: http://website.com/blah.php 静默重定向到 /folder/ ?…

你怎么这么可爱啊 2024-10-09 08:53:20 0 0

.htaccess子域重定向问题

我有一个网站 www.example.com 并且有一个子域 something.example.com 主域和子域都指向 我的 目录“public_html”根目录上的 .htaccess 将任何不带 w…

等你爱我 2024-10-09 07:34:51 0 0

.htaccess 用于重写影响 web-dev 文件夹的 url

好的,有两个问题, 首先,我是 htaccess 的新手,并且有很多问题弄清楚如何为 google SEO 制作良好的重写 URL,所以我做了这个: Options +FollowSym…

雨落□心尘 2024-10-09 07:33:25 0 0

RewriteCond 替换问题

我对 Apache 中的 RewriteCond 有疑问。我有 URL myurl.com/cache/100x100/filename.jpg,我需要检查该文件是否存在。问题是,对我来说,这条确切的路…

多彩岁月 2024-10-09 07:21:53 0 0

.htaccess 中的多个 mod 重写

我想要以下规则,但我似乎没有得到正确的设置。 /training-courses/ 末尾有或没有斜杠都应该转到: /?index.php?page=training-courses ,对于此后的…

半衾梦 2024-10-09 06:59:03 0 0

Apache 子域和域重定向

我有以下情况需要解决,我有一个域和一个子域指向同一资源。 www.mydomain.com 和 sub1.mydomain.com 我想要实现的目标如下: 我希望子域 将其根重定…

水水月牙 2024-10-09 05:27:09 0 0

.htaccess 导致重定向循环

我的网站上有一个无需 / 即可工作的 URL,但是当我添加 / 时,它说存在重定向循环...我很难在这里看到问题.... Options -indexes RewriteEngine On # …

迷路的信 2024-10-09 03:45:28 0 0

PHP使用变量时的连字符问题

我的网站是一个搜索引擎。 在我的 .htaccess 文件中,我有: RewriteRule ^news/(.*)\.html$ /results/news.php?name=$1 我的链接结构是使用连字符的 …

安静 2024-10-09 02:40:28 0 0

无法上传 .htaccess

我正在使用 Springloops 自动获取 SVN 存储库并部署到我的服务器上。我收到以下错误: Could not upload .htaccess Could not upload .htaccess using…

像极了他 2024-10-09 01:39:40 0 0

使用 QUERY_STRING 时隐藏 URL 中的 index.php 和 .php

我希望能够在使用 QUERY_STRING 时从我的 URL 中隐藏 index.php 和 .php。 现在,我成功地隐藏了index.php(访问某些目录时除外),在我的.htaccess中…

老街孤人 2024-10-09 01:19:39 0 0

如何阻止 .htaccess 文件将 iPad 用户重定向到我的移动网站?

我目前拥有的 .htaccess 文件: RewriteEngine On RewriteCond %{HTTP_USER_AGENT} "smartphone|rover|ipaq|au-mic,|alcatel|ericy|vodafone\/|wap1\.…

墨小沫ゞ 2024-10-09 01:08:44 0 0

使用 mod_rewrite 从 example.com/dir 重定向到 www.example.com/dir

假设 / 是我的域 example.com 的文档根。 /.htaccess RewriteEngine on RewriteCond %{HTTP_HOST} ^example\.com$ [NC] RewriteRule ^(.*)$ http://ww…

ヤ经典坏疍 2024-10-08 21:20:31 0 0

Htaccess 301重定向:寻找特定变量

我现在有这个: RewriteRule ^/?word/(.*) /display.php?mid=$1 [L,R=301] 这将变成:http://testpp.peoplepulse.com.au/word/ testvar 进入 http://t…

2024-10-08 21:05:19 0 0
更多

推荐作者

lioqio

文章 0 评论 0

Single

文章 0 评论 0

禾厶谷欠

文章 0 评论 0

alipaysp_2zg8elfGgC

文章 0 评论 0

qq_N6d4X7

文章 0 评论 0

放低过去

文章 0 评论 0

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文