在PHP中重写Url获取错误内部服务器错误 [英] Url rewriting in PHP getting error internal server error

查看:71
本文介绍了在PHP中重写Url获取错误内部服务器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生,我试图在php&中使用url重写致电



localhost / job / category



然后得到500

内部服务器错误





请帮帮我



我尝试过:



i使用.htaccess文件代码



 RewriteEngine on 

RewriteRule ^ category?$ category.php





[ ^ ]

解决方案

category.php





[ ^ ]


内部服务器错误表示服务器上的代码崩溃。这就是所有人都可以告诉你的,因为没有人知道服务器上的代码当时正在做什么和/或预期什么。


hello sir when i tried to use url rewriting in php & call

localhost/job/category

then got 500

Internal Server Error



please help me

What I have tried:

i use .htaccess file following code

RewriteEngine on

RewriteRule ^category?$ category.php 



[^]

解决方案

category.php



[^]


An "Internal Server Error" means the code on the server is crashing. That's about all anyone can tell you because nobody has any clue what the code on the server is doing at the time and/or what it expects.


这篇关于在PHP中重写Url获取错误内部服务器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆