Hi I can do rewriting in htaccess but I'm having a problem working out the rule for the following: I'd like it to match passion-terroir.fr http://www.passion-terroir.fr http://www.passion-terroir.fr/ but not http://www.passion-terroir.fr/bla http://www.passion-terroir.fr/bla/ http://www.passion-terroir.fr/bla/bla http://www.passion-terroir.fr/bla/bla.php and then rewrite to index\.php?t=in&p_id=1 I've tried a million combinations including RewriteRule ^passion-terroir\.fr$ index\.php?t=in&p_id=1 [NC] RewriteRule ^/$ index\.php?t=in&p_id=1 [NC] but nothing works - it should be incredibly simple .... any ideas ? thanks
How about this: RewriteEngine On RewriteBase / RewriteRule ^$ /index.php?t=in&p_id=1 [L] Code (markup): Cheers!