Jump to content

subdomain redirect problem


dimebag12

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.