帮助htaccess mod_rewrite [英] help on htaccess mod_rewrite

查看:76
本文介绍了帮助htaccess mod_rewrite的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



请怎么用mod_rewrite指导这个www.example.com/folder1/folder2/folder3/folder4/file.php?key= 1



到www.example.com/key



我在过去的3小时内试过这个但是没有成功。提前谢谢

Hi everyone,

please how can use mod_rewrite to direct this www.example.com/folder1/folder2/folder3/folder4/file.php?key=1

to www.example.com/key

I have trying this for the past 3hours but no success. thanks in advance

推荐答案

一切都记录完好。



首先, mod_rewrite 在许多方面,在主服务器配置中工作得更好:

http://httpd.apache.org/docs/current/howto/htaccess.html [ ^ ]。



所有内容都有详细记录:

http://httpd.apache.org/docs/current/mod/mod_rewrite.html [ ^ ],

http://httpd.apache.org/docs/2.0/misc/rewriteguide .html [ ^ ],

http://httpd.apache.org/docs/current/rewrite/flags.html [ ^ ]。



如果不知道问题,你有什么办法可以帮助你尝试了,但你没有费心去告诉我们。所以,对不起,但你得到的建议与你要求的完全一样。



-SA
Everything is well documented.

First of all, mod_rewrite "work better, in many respects, in the main server configuration":
http://httpd.apache.org/docs/current/howto/htaccess.html[^].

Everything is well documented:
http://httpd.apache.org/docs/current/mod/mod_rewrite.html[^],
http://httpd.apache.org/docs/2.0/misc/rewriteguide.html[^],
http://httpd.apache.org/docs/current/rewrite/flags.html[^].

There is no way to help you more without knowing your problems and what have you tried, but you did not bother to tell us about it. So, sorry, but you get exactly as much of advice as you asked for.

—SA


这篇关于帮助htaccess mod_rewrite的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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