Nobody find this useful or interesting or worth posting under WebDNA "tips and Tricks"...?--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.usyou can have one index page and pull content from databases=C2=A0base on subdomains...vhost can be simplified=C2=A0<VirtualHost 192.168.0.2:80>
=C2=A0 =C2=A0ServerAlias YOURDOMAIN.COM
=C2=A0 =C2=A0ServerAlias *.YOURDOMAIN.COM
=C2=A0 =C2=A0ServerAlias *.*.YOURDOMAIN.COM
=C2=A0 =C2=A0ServerAlias *.*.*.YOURDOMAIN.COM
=C2=A0 =C2=A0ServerAlias *.*.*.*.YOURDOMAIN.COM
=C2=A0 =C2=A0DocumentRoot /Library/WebServer/YOUR=DOMAIN.COM/
=C2=A0 =C2=A0Directoryindex index.htm
</VirtualHost>
---------- Forwarded message ---------
From: Brian Harrington <autoglasswny@gmail.com>=
Date: Wed, Oct 9, 2019 at 4:07 AM
Subject: Creating Dynamic Content based on your subdomains (up to 4) and/or user/browser language
To: <talk@webdna.us>
[!]Brian Harrington - Creating Dynamic Content based on your subdomains (up to 4) and/or user/browser language.<br>
http://buffalo=..ny.usa.na.yourdomain.com/index.html<br>
http://buffalo=..ny.yourdomain.com/index.html<br>[/!]
[listmimeheaders name=3Dhost&exact=3DF]
[text]host=3D[value][/text][/listmimeheaders]
[listmimeheaders name=3DAccept-Language&exact=3DF]
[text]lingo=3D[getchars start=3D1&end=3D2][value][/getchars][/text][/listmimehe=aders]
[Showif [lingo]=3D]
[text]lingo=3Den[/text]
[/Showif]
[Showif [lingo]=3D[raw][lingo][/raw]]
[text]lingo=3Den[/text]
[/Showif]
[text]PATH=3D[thisurl][/text]
[text]WWW=3D[HOST][thisurl][/text]
[text]HOSTEND=3D[countchars][HOST][/countchars][/text]=
[text]Dot1=3D[FindString source=3D[getchars start=3D1&end=3D[HOSTEND]][HOST][/getchars]&find=3D=..][/text]
[text]Dot2=3D[FindString source=3D[getcharsstart=3D[math][Dot1]+1[/math]&end=3D[HOSTEND]][HOST][/getchars]&f=ind=3D.][/text]
[text]Dot3=3D[FindString source=3D[getcharsstart=3D[math][Dot1]+[Dot2]+1[/math]&end=3D[HOSTEND]][HOST][/getchars=]&find=3D.][/text]
[text]Dot4=3D[FindString source=3D[getcharsstart=3D[math][Dot1]+[Dot2]+[Dot3]+1[/math]&end=3D[HOSTEND]][HOST][/g=etchars]&find=3D.][/text]
[text]Dot5=3D[FindString source=3D[getcharsstart=3D[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+1[/math]&end=3D[HOSTEND]][H=OST][/getchars]&find=3D.][/text]
[text]Dot6=3D[FindString source=3D[getcharsstart=3D[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+[Dot5]+1[/math]&end=3D[HOST=END]][HOST][/getchars]&find=3D.][/text]
[Showif [Dot1]>0][Showif [Dot2]=3D0][text]DOTS=3D1[/text][/Showif][/Showif]
[Showif [Dot1]>0][Showif [Dot2]>0][Showif [Dot3]=3D0][text]DOTS=3D2[/text][/Showif][/Showif][/Showi=f]
[Showif [Dot1]>0][Showif [Dot2]>0][Showif [Dot3]>0][Showif [Dot4]=3D0][text]DOTS=3D3[/text][/Showif][/Showif][/Showi=f][/Showif]
[Showif [Dot1]>0][Showif [Dot2]>0][Showif [Dot3]>0][Showif [Dot4]>0][Showif[Dot5]=3D0][text]DOTS=3D4[/text][/Showif][/Showif][/Showif][/Showif][/Sho=wif]
[Showif [Dot1]>0][Showif [Dot2]>0][Showif [Dot3]>0][Showif [Dot4]>0][Showif [Dot5]>0][Showif[Dot6]=3D0][text]DOTS=3D5[/text][/Showif][/Showif][/Showif][/Showif][/Sho=wif][/Showif]
[text]SubHost1=3D[/text]
[text]SubHost2=3D[/text]
[text]SubHost3=3D[/text]
[text]SubHost4=3D[/text]
[Showif [DOTS]=3D1]
[text]TLD=3D[getchars start=3D[math][Dot1]+1[/math]&end=3D[HOSTEND]][HOST][=/getchars][/text]
[text]HOST2=3D[getchars start=3D1&end=3D[MATH][Dot1]-1[/MATH]][HOST][/getchar=s][/text]
[/Showif]
[Showif [DOTS]=3D2]
[text]SubHost1=3D[getchars start=3D1&end=3D[math][Dot1]-1[/math]][HOST][/getchar=s][/text]
[text]HOST2=3D[getcharsstart=3D[math][Dot1]+1[/math]&end=3D[MATH][Dot1]+[Dot2]-1[/MATH]][HOS=T][/getchars][/text]
[text]TLD=3D[getcharsstart=3D[math][Dot1]+[Dot2]+1[/math]&end=3D[HOSTEND]][HOST][/getchars=][/text]
[/Showif]
[Showif [DOTS]=3D3]
[text]SubHost2=3D[getchars start=3D1&end=3D[math][Dot1]-1[/math]][HOST][/getchar=s][/text]
[text]SubHost1=3D[getcharsstart=3D[math][Dot1]+1[/math]&end=3D[math][Dot1]+[Dot2]-1[/math]][HOS=T][/getchars][/text]
[text]HOST2=3D[getcharsstart=3D[math][Dot1]+[Dot2]+1[/math]&end=3D[MATH][Dot1]+[Dot2]+[Dot3]=-1[/MATH]][HOST][/getchars][/text]
[text]TLD=3D[getcharsstart=3D[math][Dot1]+[Dot2]+[Dot3]+1[/math]&end=3D&end=3D[HOSTEND=]][HOST][/getchars][/text]
[/Showif]
[Showif [DOTS]=3D4]
[text]SubHost3=3D[getchars start=3D1&end=3D[math][Dot1]-1[/math]][HOST][/getchar=s][/text]
[text]SubHost2=3D[getcharsstart=3D[math][Dot1]+1[/math]&end=3D[math][Dot1]+[Dot2]-1[/math]][HOS=T][/getchars][/text]
[text]SubHost1=3D[getcharsstart=3D[math][Dot1]+[Dot2]+1[/math]&end=3D[math][Dot1]+[Dot2]+[Dot3]=-1[/math]][HOST][/getchars][/text]
[text]HOST2=3D[getcharsstart=3D[math][Dot1]+[Dot2]+[Dot3]+1[/math]&end=3D[MATH][Dot1]+[Dot2]=+[Dot3]+[Dot4]-1[/MATH]][HOST][/getchars][/text]
[text]TLD=3D[getcharsstart=3D[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+1[/math]&end=3D&end=3D[=HOSTEND]][HOST][/getchars][/text]
[/Showif]
[Showif [DOTS]=3D5]
[text]SubHost4=3D[getchars start=3D1&end=3D[math][Dot1]-1[/math]][HOST][/getchar=s][/text]
[text]SubHost3=3D[getcharsstart=3D[math][Dot1]+1[/math]&end=3D[math][Dot1]+[Dot2]-1[/math]][HOS=T][/getchars][/text]
[text]SubHost2=3D[getcharsstart=3D[math][Dot1]+[Dot2]+1[/math]&end=3D[math][Dot1]+[Dot2]+[Dot3]=-1[/math]][HOST][/getchars][/text]
[text]SubHost1=3D[getcharsstart=3D[math][Dot1]+[Dot2]+[Dot3]+1[/math]&end=3D[math][Dot1]+[Dot2]=+[Dot3]+[Dot4]-1[/math]][HOST][/getchars][/text]
[text]HOST2=3D[getcharsstart=3D[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+1[/math]&end=3D[MATH][Dot1]=+[Dot2]+[Dot3]+[Dot4]+[Dot5]-1[/MATH]][HOST][/getchars][/text]
[text]TLD=3D[getcharsstart=3D[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+[Dot5]+1[/math]&end=3D&=end=3D[HOSTEND]][HOST][/getchars][/text]
[/Showif]
[text]Domain=3D[HOST2].[TLD][/text]
<hr>
Lingo=3D[Lingo] (2 Letter)<br>
ThisURL=3D[thisurl] (aka File Path)<br>
WWW=3D[WWW]<br>
HOST=3D[HOST]<br>
DOTS=3D[DOTS]<br>
HOST2=3D[HOST2]<br>
TLD=3D[TLD]<br>
SubHost1 =3D[SubHost1]<br>
SubHost2=3D[SubHost2]<br>
SubHost3=3D[SubHost3]<br>
SubHost4=3D[SubHost4]<br>
Domain=3D[Domain]
<hr>
----------------------------------------------------=------
Brian HarringtonAuto Glass Xpress2655 Millersport Hwy. Suite 1063Getzville, NY 14068(716) 861-2029
--
Brian HarringtonAuto Glass Xpress2655 Millersport Hwy. Suite 1063Getzville, NY 14068(716) 861-2029
--=20Matthew A PerosiCorporate ConsultantMobile Marketing ExpertSenior Web DeveloperSEO Analyst & Educatorm=att@psiprime.comPsi Prime323 Union Blvd.Totowa, NJ 07512Direct: 888.872.0274Fax: 888.488.5924http://=www.perosi.com---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@webdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=3D55Bug Reporting: support@webdna.us--------------FBE997C91BBAE8C466439641--. Associated Messages, from the most recent to the oldest:
|
Nobody find this useful or interesting or worth posting under WebDNA "Tips and Tricks"...?--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.usyou can have one index page and pull content from databases=C2=A0base on subdomains...vhost can be simplified=C2=A0<VirtualHost 192.168.0.2:80>
=C2=A0 =C2=A0ServerAlias YOURDOMAIN.COM
=C2=A0 =C2=A0ServerAlias *.YOURDOMAIN.COM
=C2=A0 =C2=A0ServerAlias *.*.YOURDOMAIN.COM
=C2=A0 =C2=A0ServerAlias *.*.*.YOURDOMAIN.COM
=C2=A0 =C2=A0ServerAlias *.*.*.*.YOURDOMAIN.COM
=C2=A0 =C2=A0DocumentRoot /Library/WebServer/YOUR=DOMAIN.COM/
=C2=A0 =C2=A0Directoryindex index.htm
</VirtualHost>
---------- Forwarded message ---------
From: Brian Harrington <autoglasswny@gmail.com>=
Date: Wed, Oct 9, 2019 at 4:07 AM
Subject: Creating Dynamic Content based on your subdomains (up to 4) and/or user/browser language
To: <talk@webdna.us>
[!]Brian Harrington - Creating Dynamic Content based on your subdomains (up to 4) and/or user/browser language.<br>
http://buffalo=..ny.usa.na.yourdomain.com/index.html<br>
http://buffalo=..ny.yourdomain.com/index.html<br>[/!]
[listmimeheaders name=3Dhost&exact=3DF]
[text]host=3D[value][/text][/listmimeheaders]
[listmimeheaders name=3DAccept-Language&exact=3DF]
[text]lingo=3D[getchars start=3D1&end=3D2][value][/getchars][/text][/listmimehe=aders]
[Showif [lingo]=3D]
[text]lingo=3Den[/text]
[/Showif]
[Showif [lingo]=3D[raw][lingo][/raw]]
[text]lingo=3Den[/text]
[/Showif]
[text]PATH=3D[thisurl][/text]
[text]WWW=3D[HOST][thisurl][/text]
[text]HOSTEND=3D[countchars][HOST][/countchars][/text]=
[text]Dot1=3D[FindString source=3D[getchars start=3D1&end=3D[HOSTEND]][HOST][/getchars]&find=3D=..][/text]
[text]Dot2=3D[FindString source=3D[getcharsstart=3D[math][Dot1]+1[/math]&end=3D[HOSTEND]][HOST][/getchars]&f=ind=3D.][/text]
[text]Dot3=3D[FindString source=3D[getcharsstart=3D[math][Dot1]+[Dot2]+1[/math]&end=3D[HOSTEND]][HOST][/getchars=]&find=3D.][/text]
[text]Dot4=3D[FindString source=3D[getcharsstart=3D[math][Dot1]+[Dot2]+[Dot3]+1[/math]&end=3D[HOSTEND]][HOST][/g=etchars]&find=3D.][/text]
[text]Dot5=3D[FindString source=3D[getcharsstart=3D[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+1[/math]&end=3D[HOSTEND]][H=OST][/getchars]&find=3D.][/text]
[text]Dot6=3D[FindString source=3D[getcharsstart=3D[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+[Dot5]+1[/math]&end=3D[HOST=END]][HOST][/getchars]&find=3D.][/text]
[Showif [Dot1]>0][Showif [Dot2]=3D0][text]DOTS=3D1[/text][/Showif][/Showif]
[Showif [Dot1]>0][Showif [Dot2]>0][Showif [Dot3]=3D0][text]DOTS=3D2[/text][/Showif][/Showif][/Showi=f]
[Showif [Dot1]>0][Showif [Dot2]>0][Showif [Dot3]>0][Showif [Dot4]=3D0][text]DOTS=3D3[/text][/Showif][/Showif][/Showi=f][/Showif]
[Showif [Dot1]>0][Showif [Dot2]>0][Showif [Dot3]>0][Showif [Dot4]>0][Showif[Dot5]=3D0][text]DOTS=3D4[/text][/Showif][/Showif][/Showif][/Showif][/Sho=wif]
[Showif [Dot1]>0][Showif [Dot2]>0][Showif [Dot3]>0][Showif [Dot4]>0][Showif [Dot5]>0][Showif[Dot6]=3D0][text]DOTS=3D5[/text][/Showif][/Showif][/Showif][/Showif][/Sho=wif][/Showif]
[text]SubHost1=3D[/text]
[text]SubHost2=3D[/text]
[text]SubHost3=3D[/text]
[text]SubHost4=3D[/text]
[Showif [DOTS]=3D1]
[text]TLD=3D[getchars start=3D[math][Dot1]+1[/math]&end=3D[HOSTEND]][HOST][=/getchars][/text]
[text]HOST2=3D[getchars start=3D1&end=3D[math][Dot1]-1[/MATH]][HOST][/getchar=s][/text]
[/Showif]
[Showif [DOTS]=3D2]
[text]SubHost1=3D[getchars start=3D1&end=3D[math][Dot1]-1[/math]][HOST][/getchar=s][/text]
[text]HOST2=3D[getcharsstart=3D[math][Dot1]+1[/math]&end=3D[math][Dot1]+[Dot2]-1[/MATH]][HOS=T][/getchars][/text]
[text]TLD=3D[getcharsstart=3D[math][Dot1]+[Dot2]+1[/math]&end=3D[HOSTEND]][HOST][/getchars=][/text]
[/Showif]
[Showif [DOTS]=3D3]
[text]SubHost2=3D[getchars start=3D1&end=3D[math][Dot1]-1[/math]][HOST][/getchar=s][/text]
[text]SubHost1=3D[getcharsstart=3D[math][Dot1]+1[/math]&end=3D[math][Dot1]+[Dot2]-1[/math]][HOS=T][/getchars][/text]
[text]HOST2=3D[getcharsstart=3D[math][Dot1]+[Dot2]+1[/math]&end=3D[math][Dot1]+[Dot2]+[Dot3]=-1[/MATH]][HOST][/getchars][/text]
[text]TLD=3D[getcharsstart=3D[math][Dot1]+[Dot2]+[Dot3]+1[/math]&end=3D&end=3D[HOSTEND=]][HOST][/getchars][/text]
[/Showif]
[Showif [DOTS]=3D4]
[text]SubHost3=3D[getchars start=3D1&end=3D[math][Dot1]-1[/math]][HOST][/getchar=s][/text]
[text]SubHost2=3D[getcharsstart=3D[math][Dot1]+1[/math]&end=3D[math][Dot1]+[Dot2]-1[/math]][HOS=T][/getchars][/text]
[text]SubHost1=3D[getcharsstart=3D[math][Dot1]+[Dot2]+1[/math]&end=3D[math][Dot1]+[Dot2]+[Dot3]=-1[/math]][HOST][/getchars][/text]
[text]HOST2=3D[getcharsstart=3D[math][Dot1]+[Dot2]+[Dot3]+1[/math]&end=3D[math][Dot1]+[Dot2]=+[Dot3]+[Dot4]-1[/MATH]][HOST][/getchars][/text]
[text]TLD=3D[getcharsstart=3D[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+1[/math]&end=3D&end=3D[=HOSTEND]][HOST][/getchars][/text]
[/Showif]
[Showif [DOTS]=3D5]
[text]SubHost4=3D[getchars start=3D1&end=3D[math][Dot1]-1[/math]][HOST][/getchar=s][/text]
[text]SubHost3=3D[getcharsstart=3D[math][Dot1]+1[/math]&end=3D[math][Dot1]+[Dot2]-1[/math]][HOS=T][/getchars][/text]
[text]SubHost2=3D[getcharsstart=3D[math][Dot1]+[Dot2]+1[/math]&end=3D[math][Dot1]+[Dot2]+[Dot3]=-1[/math]][HOST][/getchars][/text]
[text]SubHost1=3D[getcharsstart=3D[math][Dot1]+[Dot2]+[Dot3]+1[/math]&end=3D[math][Dot1]+[Dot2]=+[Dot3]+[Dot4]-1[/math]][HOST][/getchars][/text]
[text]HOST2=3D[getcharsstart=3D[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+1[/math]&end=3D[math][Dot1]=+[Dot2]+[Dot3]+[Dot4]+[Dot5]-1[/MATH]][HOST][/getchars][/text]
[text]TLD=3D[getcharsstart=3D[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+[Dot5]+1[/math]&end=3D&=end=3D[HOSTEND]][HOST][/getchars][/text]
[/Showif]
[text]Domain=3D[HOST2].[TLD][/text]
<hr>
Lingo=3D[Lingo] (2 Letter)<br>
ThisURL=3D[thisurl] (aka File Path)<br>
WWW=3D[WWW]<br>
HOST=3D[HOST]<br>
DOTS=3D[DOTS]<br>
HOST2=3D[HOST2]<br>
TLD=3D[TLD]<br>
SubHost1 =3D[SubHost1]<br>
SubHost2=3D[SubHost2]<br>
SubHost3=3D[SubHost3]<br>
SubHost4=3D[SubHost4]<br>
Domain=3D[Domain]
<hr>
----------------------------------------------------=------
Brian HarringtonAuto Glass Xpress2655 Millersport Hwy. Suite 1063Getzville, NY 14068(716) 861-2029
--
Brian HarringtonAuto Glass Xpress2655 Millersport Hwy. Suite 1063Getzville, NY 14068(716) 861-2029
--=20Matthew A PerosiCorporate ConsultantMobile Marketing ExpertSenior Web DeveloperSEO Analyst & Educatorm=att@psiprime.comPsi Prime323 Union Blvd.Totowa, NJ 07512Direct: 888.872.0274Fax: 888.488.5924http://=www.perosi.com---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@webdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=3D55Bug Reporting: support@webdna.us--------------FBE997C91BBAE8C466439641--. "Matthew A Perosi, Psi Prime"
DOWNLOAD WEBDNA NOW!
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...