【发布时间】:2013-11-23 14:10:32
【问题描述】:
我有一个给定的网址:
http://www.simtalltd.com/hebrew/index.php?option=com_content&task=view&id=15&Itemid=29
我需要得到所有字符串之后:http://www.simtalltd.com/
像这样: hebrew/index.php?option=com_content&task=view&id=15&Itemid=29
我试过这段代码:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) /index.asp?rewrite_url=$1 [QSA,L,NU]
但我只是得到:hebrew/index.php
什么是正确的代码?
【问题讨论】:
-
检查所有查询参数。您将在
index.asp中获得所有查询参数 -
我需要把它们都放进去:rewrite_url not as parameters
-
这意味着我会得到它们:rewrite_url='hebrew/index.php?option=com_content&task=view&id=15&Itemid=29'
标签: .htaccess mod-rewrite url-rewriting isapi-rewrite