Tuesday, December 11, 2007

Stop Making Mud and Clear Up Your URI

Do you use a custom domain with Blogger like I do? Well I find that the help at Blogger is pretty good. There's info on how to setup the DNS etc. And, if you're like me and wrap your domain with Gmail and Google Calendar then you have email.yourdomain.com resolving for email and cal.yourdomain.com resolving for the Calendar.
However, you may have noticed that while www.yourdomain.com brings up your blog, yourdomain.com (without the "www") does not. What to do? Well if you are on Linux/Apache and hosted somewhere, time to make a quick and dirty little .htaccess file.
Make a text file called htaccess.txt. Put the following code in there:
#chrisbeckworth.com rocks visit often
Options +FollowSymlinks

RewriteEngine on
rewritecond %{http_host} ^yourdomain.com [nc]
rewriterule ^(.*)$ http://www.yourdomain.com/$1 [r=301,nc]
Replace "yourdomain.com" with domain name and tld. Save the file. FTP to your domains directory and uploaded the file. Rename the file from htaccess.txt to .htaccess.
Enjoy.

Test Class for your Marketing Cloud Trigger

When using the Salesforce Marketing Cloud Connector to enable Marketing Cloud access from Sales and Service Clouds, folks often want to perf...