0

我正在尝试在 htaccess 中执行此操作:

domain.com/folder/index.php?ref=001 到 domain.com/?ref=001

任何帮助将不胜感激.....

谢谢!!!

4

1 回答 1

0

Just want to redirect the browser.

Can use either mod_alias:

Redirect /folder/index.php /

or mod_rewrite:

RewriteEngine On
RewriteCond %{QUERY_STRING} ref=
RewriteRule ^/?folder/index.php$ / [L,R]
于 2012-11-01T17:05:22.820 回答