Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.htaccess 为我的php网站重写Url_.htaccess_Mod Rewrite_Url Rewriting - Fatal编程技术网

.htaccess 为我的php网站重写Url

.htaccess 为我的php网站重写Url,.htaccess,mod-rewrite,url-rewriting,.htaccess,Mod Rewrite,Url Rewriting,我如何将其改写为我的htaccess文件 从 http://example.com/prod/?item=B1594TBLW. 对此 http://example.com/B1594TBLW. 我的错误 RewriteRule ^([^/]*)?$ prod/?item=$1 [QSA,L] 看起来不错。你有什么错误?你检查过Apache错误日志了吗?我的错误:你能告诉我们你有什么错误吗?

我如何将其改写为我的htaccess文件

http://example.com/prod/?item=B1594TBLW.
对此

http://example.com/B1594TBLW.
我的错误

RewriteRule ^([^/]*)?$ prod/?item=$1 [QSA,L]

看起来不错。你有什么错误?你检查过Apache错误日志了吗?我的错误:你能告诉我们你有什么错误吗?