RewriteRule to only affect first segment
- by mschoening
I have the following RewriteRule in place. This rewrites everything that starts with mac, linux or windows:
RewriteCond $1 ^(mac|linux|windows) [NC]
RewriteRule ^(.*)$ /index.php/site/index/$1 [L]
Unfortunately this also rewrites /mac/test/testing. How can I prevent it from applying if there is another segmend after /mac?