开发者

.htaccess redirect to start.php when querystring is empty

I need a redirect to start.php when theres yet no qu开发者_开发百科ery string set.. I tried the following, without really knowing what the rexex does.

 # BEGIN WordPress
 <IfModule mod_rewrite.c>
 RewriteEngine On
 RewriteBase /
 RewriteCond %{QUERY_STRING} ^(.*)$  #is there the equal operator = ''? 
 RewriteRule ^ /start.php/? [L]
 </IfModule>
 # END WordPress

Thanks for any help greetings form the cold, braoh!

peachio


Your regex will match any text. If you want it to match an empty string, use ^$.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜