开发者

.htaccess redirect to start.php when querystring is empty

开发者 https://www.devze.com 2023-01-28 03:20 出处:网络
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.

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

精彩评论

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