
#redirect if 'secure' isn't the subdomain
RewriteCond %{HTTP_HOST} ^(www\.)?localthanks\.com$ [NC]
RewriteRule ^ http://secure\.localthanks.com/admin  [L,QSA]

RewriteCond %{HTTP_HOST} ^(www\.)?localthanks\.net$ [NC]
RewriteRule ^ http://secure\.localthanks.net/admin  [L,QSA]

RewriteCond %{HTTP_HOST} ^(www\.)?localthanks\.org$ [NC]
RewriteRule ^ http://secure\.localthanks.org/admin  [L,QSA]

RewriteCond %{HTTP_HOST} ^(www\.)?localthanks\.biz$ [NC]
RewriteRule ^ http://secure\.localthanks.biz/admin  [L,QSA]

# FORWARD TO HTTPS
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]






  RewriteCond %{HTTP_HOST} ^secure\.localthanks\.(net|org|com|biz)  [NC]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^admin/([^/]+)$ admin/index.php?url1=$1  [L,QSA]


# URL 1
	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteCond %{REQUEST_FILENAME} !-d
	RewriteRule ^([^/]+)$ index.php?url1=$1  [L,QSA]
	
# URL 2
	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteCond %{REQUEST_FILENAME} !-d
	RewriteRule ^([^/]+)/([^/]+)$ index.php?url1=$1&url2=$2  [L,QSA]