Hi!
I have a local domain called sds.local and I have defined two subdomains called cauta.sds.local and test.sds.local in my network by providing the ip address of the computer that has the apache server installed.
I want that when I click http://cauta.sds.local/ to be redirected to http://cauta.sds.local/sds/index.php?id=29 and when I click http://test.sds.local/ to be redirected to http://test.sds.local/sds/index.php?id=2
I've set my http.conf to load the module mode_rewrite and I've commented the 'allowoverride none'.
My htaccess looks like this:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %[HTTP_HOST] cauta.sds.local$ [NC]
RewriteRule ^/index\.php$ http://cauta.sds.local/sds/index.php?id=29 [r=301,nc]
RewriteCond %[HTTP_HOST] test.sds.local$ [NC]
RewriteRule ^/index\.php$ http://test.sds.local/sds/index.php?id=2 [r=301,nc]
It doesn't work and I don't see what I've done wrong!