The requested URL /home/profession was not found on this server.

通过xxx.com, 首页可以正常访问,xxx.com/xx/xx 就出现 The requested URL xxx was not found on this server.

1,找到apache配置文件httpd.conf配置文件中的

AllowOverride none
Require all denied

改成

Options Indexes FollowSymLinks
AllowOverride All

2,找到apache配置文件httpd.conf配置并开启重写模块

LoadModule rewrite_module modules/mod_rewrite.so 

Ubuntu16.04模块在  /etc/apache2/mods-available 下,需要链接到  mods-enable 下

ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/rewrite.load

3.加在重写,站点缺少 .htaccess 文件(文件在public下,没有就新建)

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

转载于:https://www.cnblogs.com/cap-rq/p/10891894.html

新部署到服务器 报 The requested URL /home/profession was not found on this server. 错误相关推荐

  1. 【每日学习】Apache重写未开启,导致The requested URL /xxxx.html was not found on this server...

    今天把项目环境从集成换成独立的,全部搭建好后,网站主页www.xxx.com能打开,但一涉及到跳转,带参数,比如 www.xxx.com/xxx/xxx.html 就会报错 The requested ...

  2. Not Found The requested URL /admin/index was not found on this server.

    问题描述:phpstudy V8下创建域名报错Not Found The requested URL /admin/index was not found on this server. Additi ...

  3. The requested URL /xxxx.html was not found on this server

    The requested URL /xxxx.html was not found on this server The requested URL /xxxx.html was not found ...

  4. node项目部署到服务器报错,记一次部署node项目到centos服务器经历

    :-} 先从网上随便搜了个 contos 安装 node 的教程,大概就是这样. 准备命令: yum -y install gcc make gcc-c++ openssl-devel wget 下载 ...

  5. xp系统打印机服务器报错,XP系统使用打印机弹出Spoolsv.exe 应用程序错误怎么办...

     在日常办公中,我们经常都会碰到需要使用打印机的情况.不过,最近有XP系统用户反馈,在使用打印机时候,打印机显示Spoolsv.exe -应用程序错误.报错:"xxxxxxxxxx&quo ...

  6. MyEclipse部署Tomcat服务器时总是跳到Debug模式

    问题: MyEclipse部署Tomcat服务器时总是跳到Debug模式,连续点击下一步后出现错误:Source not found for LauncherHelper.checkAndLoadMa ...

  7. bootscript部署到服务器后图标不显示

    原文地址 本地上样式,图标什么都完全正常,但是部署到服务器上后图标显示不出来,在前台显示这样的错误, 翻译中文大概就是说谷歌不允许访问路径,网上找了很多解决方案,但是都不行,后来发现,只要把图标相关的 ...

  8. 搭建网站服务器时报错url,服务器网站总报错“ERROR the requested URL could not be retrieved”解决办法...

    服务器网站总报错"ERROR the requested URL could not be retrieved" ERROR The requested URL could not ...

  9. git push提交代码到服务器报remote: [session-xx] Access denie The requested URL returned error: 403

    操作: 执行git push -u origin master,我想把commit的代码直接提交到远程的仓库,哪知道直接给我一个报错: remote: [session-xxx] Access den ...

最新文章

  1. 为选择屏幕的字段设置F4帮助
  2. redis3.0.2 编译安装 (启动服务方式启动)
  3. 大厂与小厂工作的选择
  4. 服务器机房 维护,服务器机房建设与管理维护.pdf
  5. 520 钻石争霸赛 7-8浪漫侧影(二叉树的遍历)
  6. layui按钮展开、_layui可折叠的组织架构树形图
  7. LeetCode MySQL 597. 好友申请 I :总体通过率
  8. 别再用代码开发了,整理了30套实用可视化大屏模板,无套路直接领
  9. 数据解析1:XML解析(1)
  10. Unity3D笔记 愤怒的小鸟四 实现Selelction界面
  11. 【2022最新版】Java零基础入门教程_零基础学Java_Java入门教程
  12. Python 批量修改文件后缀
  13. 宝塔面板防火墙安装和使用教程详解
  14. 一个运行成功的hibernate例子(解决一直报hibernate mapping exception的错误)
  15. Java基础知识(七) 输入输出流
  16. android String文件中修改部分字体颜色
  17. 大商创 常见问题 mysql_【大商创常见问题】大商创v2.4及以上版本运费设置教程说明...
  18. oracle19自动索引,Oracle 19c 新特性详解:自动索引(Automatic Indexing)的输出报告范例...
  19. linux内存测试工具memtest,用Memtest86检测电脑内存
  20. gSOAP生成ONVIF框架代码

热门文章

  1. 荣耀10xmax升级鸿蒙,荣耀10xmax和10x评测 荣耀X10 Max比X10“Max”在哪儿?
  2. Scissoring By Projection Matrix
  3. 服务器路由链路追踪命令
  4. Linux kswapd0 CPU占用过高
  5. 荣耀 X40i什么时候发布 荣耀 X40i配置如何
  6. ABP框架-1.1 ABP总体介绍 - 入门介绍
  7. python编写性别比例失衡_英语作文:性别比例失衡 Gender Imbalance
  8. 银联支付(WAP支付)
  9. xcode 10 打包到蒲公英操作流程
  10. 今日头条适配方案使用