I have been using a WordPress plugin for awhile called Pretty Link Pro which provides a ton of awesome features including a link shortener such as tinyurl.com. When using the URL shortener you can actually configure Pretty Link Pro to use a different domain which would be a benefit if your URL is long similar to www.question-defense.com. I have been using link.as so instead of providing shortened links such as http://www.question-defense.com/1ce I can provide links such as http://link.as/1ce which you can see is a lot more user friendly when providing links to others. One thing I wanted to ensure was the fact that Google was not crawling content on the http://link.as URL which is possible simply by Google finding the shortened links on places like Twitter. Below I describe a .htaccess modification that will redirect any traffic to one URL to another while including any trailing text.
Tags: .htaccess, 3.0.1, delicious, domain, facebook, link, link shortener, link.as, linkedin, mixx, news vine, pretty link, pretty link pro, redirect, ReWriteCond, RewriteRule, StumbleUpon, technorati, twitter, URL, WordPress, www.question-defense.com, yahoo bookmarks
Posts Tagged “.htaccess”
Dec
17
2009
Use htaccess To Redirect All Traffic To One Directory To A New URLPosted by alex in InsightsTonight we are launching a new portiong of Question-Defense.com called Engage. This new section allows anyone to write questions and allows the community to respond to those questions. Now people can become more involved and more questions will be answered because the possibilities of who can respond are endless. Tags: .htaccess, apache, directory, Engage, redirect, rewrite, RewriteEngine, RewriteRule, traffic, URL
Jul
16
2009
WordPress: Getting WP Super Cache to Work With WordPress PDA & iPhonePosted by alex in InsightsI struggled with getting WP Super Cache in full caching mode to work with a mobile device plugin such as WordPress PDA & iPhone for a long time. Awhile back I actually had given up because everything I was doing appeared that it should work but it wasn’t working properly. Needless to say I recently moved the site to a new server and decided to give it another shot. This time I was able to get WP Super Cache working with WordPress PDA and iPhone with ease. Please realize that this method makes it so all of the mobile browsers do not cache pages but they also do not retrieve pages from the cache. To configure the below properly you have to realize that there are two different things happening which are the fact that mobile browsers should not cache files and they should not read from the cache. Basically if they didn’t cache files but read from the cache they would be reading the cache of the default template that you see in IE. If mobile browsers cached files then they would be caching the mobile template so when typical browsers such as Internet Explorer or Firefox visited the same pages they would be viewing the mobile cache instead of the default template you have configure. Tags: .htaccess, blackberry, HTTP_USER_AGENT, iPhone, mobile browser, opera mini, rewrite rule, ReWriteCond, Templates, user agent, WordPress, WordPress PDA and iPhone, WP Super CacheThere are a couple things that need to be considered when creating an htaccess file to redirect all traffic from a domain to www.domain. Follow the instructions below to make sure you have your bases covered and traffic is redirected properly.
LoadModule rewrite_module modules/mod_rewrite.so |
























Entries (RSS)