禁止:此外,尝试使用ErrorDocument处理请求时遇到404 Not Found错误

英俊的

嗨,我在我的服务器上有此文件夹,它是clients / nannyshareaustralia,我正在使用codeigniter框架,我也已经在基本URL中设置了config.php。即时通讯也为htaccess文件添加

RewriteEngine On
RewriteCond %{REQUEST_URI} ^system.*
RewriteCond $1 ^(index\.php|robots\.txt|favicon\.ico|images|js|assets|css)
RewriteRule ^(.*)$ /clients/nannyshareaustralia/index.php?/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /clients/nannyshareaustralia/index.php?/$1 [L]

当我在浏览器中运行它时

Forbidden

You don't have permission to access /clients/nannyshareaustralia on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

有人可以帮我解决这个问题吗?非常感谢任何帮助

汤姆森
RewriteEngine On
RewriteBase /clients/nannyshareaustralia
RewriteCond %{REQUEST_URI} ^system.*
RewriteCond $1 ^(index\.php|robots\.txt|favicon\.ico|images|js|assets|css)
....

RewriteBase在您的.htaccess授予中添加了mod_rewrite在服务器上启用规则

note备注如果您以类似方式访问目录www.domain.com/clients/nannyshareaustralia,则必须将RewriteBase添加到.htaccess

但是,如果将url / domain指向文件夹clients/nannyshareaustralia,则不需要RewriteBase

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

尝试使用 ErrorDocument 处理请求时遇到 404 Not Found 错误

来自分类Dev

尝试使用ErrorDocument处理请求时出现500内部服务器错误

来自分类Dev

使用Facebook Graph API时遇到错误-会话:尝试为具有待处理请求的会话请求新权限

来自分类Dev

错误:在单击提交按钮以提交消息时处理请求的 ErrorDocument

来自分类Dev

尝试上传文件时出现 404 not found 错误节点 js

来自分类Dev

使用域名时Nginx返回404 not found错误

来自分类Dev

尝试使用Reddit API和RedditSharp包装器在帖子上设置样式时遇到404错误

来自分类Dev

为什么我在尝试休息时遇到404错误?

来自分类Dev

尝试使用事件处理程序winform从DataGridView读取时遇到错误

来自分类Dev

我的 WordPress 404 Not Found 错误消失了 :)

来自分类Dev

如何处理Nokogiri中的404 not found错误

来自分类Dev

当路由存在时,我收到 404 not found 错误

来自分类Dev

尝试发送 POST 请求时收到 404 错误

来自分类Dev

尝试使用“请求”模块时导入错误

来自分类Dev

使用.htaccess设置某些文件类型的Web服务器处理404错误(ErrorDocument 404 +重写规则)

来自分类Dev

使用.htaccess为某些文件类型设置Web服务器处理404错误(ErrorDocument 404 +重写规则)

来自分类Dev

使用Netcat时HTTP GET请求禁止403错误

来自分类Dev

使用请求时的 Python 错误处理

来自分类Dev

处理拍打时遇到的错误

来自分类Dev

处理时遇到错误:freeradius

来自分类Dev

处理时遇到错误:安装

来自分类Dev

我在尝试在Bokeh中使用ColumnDataSource时遇到错误

来自分类Dev

如何在尝试放置错误变量时修复 Tcl 'Command not found' 错误?

来自分类Dev

使用 `genius` 包获取歌词时出现 `Not Found (HTTP 404)` 错误

来自分类Dev

我在 spriing 中遇到错误 No mapping found for HTTP request with URI

来自分类Dev

IIS 8中的WCF和EntityFramework错误服务器在处理请求时遇到错误

来自分类Dev

Laravel路线移至生产后返回“ 404 Not Found”错误

来自分类Dev

jQuery ajax给我一个404 not found错误

来自分类Dev

保存生成的QR码png却收到404 Not Found错误消息

Related 相关文章

  1. 1

    尝试使用 ErrorDocument 处理请求时遇到 404 Not Found 错误

  2. 2

    尝试使用ErrorDocument处理请求时出现500内部服务器错误

  3. 3

    使用Facebook Graph API时遇到错误-会话:尝试为具有待处理请求的会话请求新权限

  4. 4

    错误:在单击提交按钮以提交消息时处理请求的 ErrorDocument

  5. 5

    尝试上传文件时出现 404 not found 错误节点 js

  6. 6

    使用域名时Nginx返回404 not found错误

  7. 7

    尝试使用Reddit API和RedditSharp包装器在帖子上设置样式时遇到404错误

  8. 8

    为什么我在尝试休息时遇到404错误?

  9. 9

    尝试使用事件处理程序winform从DataGridView读取时遇到错误

  10. 10

    我的 WordPress 404 Not Found 错误消失了 :)

  11. 11

    如何处理Nokogiri中的404 not found错误

  12. 12

    当路由存在时,我收到 404 not found 错误

  13. 13

    尝试发送 POST 请求时收到 404 错误

  14. 14

    尝试使用“请求”模块时导入错误

  15. 15

    使用.htaccess设置某些文件类型的Web服务器处理404错误(ErrorDocument 404 +重写规则)

  16. 16

    使用.htaccess为某些文件类型设置Web服务器处理404错误(ErrorDocument 404 +重写规则)

  17. 17

    使用Netcat时HTTP GET请求禁止403错误

  18. 18

    使用请求时的 Python 错误处理

  19. 19

    处理拍打时遇到的错误

  20. 20

    处理时遇到错误:freeradius

  21. 21

    处理时遇到错误:安装

  22. 22

    我在尝试在Bokeh中使用ColumnDataSource时遇到错误

  23. 23

    如何在尝试放置错误变量时修复 Tcl 'Command not found' 错误?

  24. 24

    使用 `genius` 包获取歌词时出现 `Not Found (HTTP 404)` 错误

  25. 25

    我在 spriing 中遇到错误 No mapping found for HTTP request with URI

  26. 26

    IIS 8中的WCF和EntityFramework错误服务器在处理请求时遇到错误

  27. 27

    Laravel路线移至生产后返回“ 404 Not Found”错误

  28. 28

    jQuery ajax给我一个404 not found错误

  29. 29

    保存生成的QR码png却收到404 Not Found错误消息

热门标签

归档