dakasadaka Posted April 27, 2010 Share Posted April 27, 2010 Hier is what I have on httacces if I do the first it works, but only for subdomains not even the mainpage www.adriacro.net ! And I have two rewiters, so How can I get them work both? Options -MultiViews <IfModule mod_rewrite.c> RewriteEngine on #RewriteCond %{HTTP_HOST} ^(^.*)\.adriacro.net #RewriteRule (.*) owners.php?username=%1 RewriteRule ^([A-Za-z0-9_-]+)$ articles.php?page=$1 [QSA,L] </IfModule> Quote Link to comment https://forums.phpfreaks.com/topic/199921-2-rewrite-rulls-one-for-subdomains-and-one-on-domain/ Share on other sites More sharing options...
cags Posted April 28, 2010 Share Posted April 28, 2010 The ^ character only means 'not' when located inside a character class. #RewriteCond %{HTTP_HOST} ^([^.]*)\.adriacro.net #RewriteRule ^(.*)$ owners.php?username=%1 Quote Link to comment https://forums.phpfreaks.com/topic/199921-2-rewrite-rulls-one-for-subdomains-and-one-on-domain/#findComment-1049753 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.