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> 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 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
Archived
This topic is now archived and is closed to further replies.