dimebag12 Posted February 22, 2009 Share Posted February 22, 2009 hi ive little problem iam using url shortener script it works in subdomain mode for example i give the url and give me the url like this xyx.myhost.com but the problem is it does not redirect this shortened url ( in fact subdomain ) to the main address the shortened url returns to the main index.php of the script instead of going to the main address i tought that there must be something wrong with htaccess for redirecting the url to the main address ive wildcard dns active too can some one verify it <IfModule mod_rewrite.c> Options +FollowSymLinks RewriteEngine On RewriteCond %{HTTP_HOST} !www.domain.com$ RewriteCond %{HTTP_HOST} ^(www.)?([a-z0-9-]+).domain.com$ RewriteRule ^(.*)$ go.php?s=%2&file=$1 [L,QSA] </IfModule> this is htaccess setting Link to comment https://forums.phpfreaks.com/topic/146355-subdomain-redirect-problem/ Share on other sites More sharing options...
redarrow Posted February 22, 2009 Share Posted February 22, 2009 [a-z0-9-] <<< what this mean mate. oh there a extra - oh or it needs to be [a-z0-9\-] Link to comment https://forums.phpfreaks.com/topic/146355-subdomain-redirect-problem/#findComment-768388 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.