开发者

What is right rewrite rule?

I need a rewrite rule from this url (first) ?lang=rus&menu=about to this (second) /about_project/.

I currently have this .htaccess file:

Rewrit开发者_开发百科eEngine on
RewriteBase /
RewriteRule ^about_project/$ index.php?lang=rus&menu=about [L]

But this redirects from second to first, I need a rule for first to second!


RewriteRule ^[/]about_project/$ index.php?lang=rus&menu=about [L]

You should be looking for a / at the start.


You can use this tool:

http://www.generateit.net/mod-rewrite/

It's very useful.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜