Updated: Thu Sep 09, 2010 (15:00), A PHP / MySQL professional (10 yrs.exp.) is seeking a long-term full-time freelancing contract (relocating possible as well), see CV and contact pages.

Welcome!

Contains materials for dummies This blog is for Linux dummies as just I am.

This blog contains various solutions and how-toes on the current release of Fedora Linux distribution and several Linux articles and tutorials.

View a PHP / MySQL / AJAX / JAVASCRIPT Freelancer Programmer profile on LinkedIn Follow me on twitter

Fedora Availability

Historically Test and General Availability releases happen at 10:00am Eastern US Time...

Announcement

A php/mysql freelancer programmer since 2001 is looking for contract work. Please use contact form at this page.

The full resume with examples of PHP/MySQL/Javascript projects, working experience and recommendations is available online from this page.

Ioncube encoder is the best solution for php developers
Ioncube encoder is the best solution for a php developer

Path: Blog > Webmaster > Apache > Non-www to www Redirect on Plesk Hosting

Non-www to www Redirect on Plesk Hosting

Plesk hosting offers you an option of “Use a single directory for housing SSL and non-SSL content”. Using it is sometimes bring in some problems when people type in the url starting with www and some ajax scripts are tuned to work without it and visa versa. As a result, ajax works with errors. Noramlly, I would want my server to serve only www.SOME_DOMAIN.com.  To fix it, I would tune the .htaccess file the simplest code possible (mod_rewrite should be abvailable which is regular for Plesk installation):


RewriteEngine on

RewriteCond %{SERVER_PORT} !^443$
RewriteCond %{HTTP_HOST} ^SOME_DOMAIN\.com
RewriteRule ^(.*)$ http://www.SOME_DOMAIN.com/$1 [R,L]

RewriteCond %{SERVER_PORT} ^443$
RewriteCond %{HTTP_HOST} ^SOME_DOMAIN\.com
RewriteRule ^(.*)$ https://www.SOME_DOMAIN.com/$1 [R,L]

Related posts:

SociBook del.icio.us Digg Facebook Google Yahoo Buzz StumbleUpon
Support this site:        

Leave a comment

Your comment

Get a Free Web Project Quote from a PHP Freelancer Consultant


 
 
 
 

Fight Spam!   Add to Technorati Favorites Programming Blogs - BlogCatalog Blog Directory       Programming Blog Directory
Software   Top Blogs

blogarama - the blog directory