Tuesday, December 9, 2014

How to Redirect my website from non www to www with htaccess?

How to Redirect non-www to www in .htaccess?
Redirecting non-www to www with .htaccess. How?
How to force www or non-www in htaccess?
How to redirect non-www URLs to www?
non www to www htaccess wordpress
htaccess non www to www 301
htaccess www to non www https

This is a more generic solution, because it can be used with any domain name without having to specify the specific domain name in each .htaccess:

# Redirect non-www to www:
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

The contrary is also possible (www to non-www):

# Redirect www to non-www
RewriteCond %{HTTP_HOST} ^www\.(.*) [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]


Another Way to Redirect

I think it may just be that your existing rule is too strict, and is not getting triggered in your sub-directory because of this. Something like this should work site-wide:

RewriteEngine on
RewriteBase /

RewriteCond %{HTTP_HOST} ^example\.com$

RewriteRule ^(.*) http://www.example.com/$1 [R=301]

Wednesday, February 19, 2014

How can I run multiple Skype accounts on Windows desktop?

To use more than one Skype account on the same computer at the same time, you need to start a new instance of Skype.
  1. From the Windows taskbar, click Start > Run (or press the Windows and R keys on your keyboard at the same time).
  2. In the Run window, type the following command (including the quotes) and press OK:
  3. For 32-bit operating systems:
    "C:\Program Files\Skype\Phone\Skype.exe" /secondary
    For 64-bit operating systems:
    "C:\Program Files (x86)\Skype\Phone\Skype.exe" /secondary
If you get an error message, copy and paste the exact command from this page and try again.
Be aware that if you’ve changed the installation path for Skype, then you’ll need to enter the correct path for the Skype.exe file.
If the above solution fails, you can try another option:
  1. Find the Skype.exe file in C:\Program Files\Skype\Phone\ if you’re running a 32-bit operating system.
  2. If you’re running 64-bit operating system, you can find the file in C:\Program Files (x86)\Skype\Phone\.
  3. Right-click the file and select Send to > Desktop (create shortcut).
  4. Locate the shortcut on your desktop, then right-click it and select Properties.
  5. In the Target field of the Shortcut tab, add /secondary to the end of the path. The Target field should now be "C:\Program Files\Skype\Phone\Skype.exe" /secondary.
  6. Click OK. You can now start a new instance of Skype every time you double-click the new shortcut.

Wednesday, October 5, 2011

Simple SEO (Search Engine Optimization)Tips

Some may say - there is nothing simple about search engine optimization. However, whether SEO is easy or not really depends on the particular website. In most cases SEO is not difficult as long as sufficient time and effort is invested into the project.

1. Create webpage titles related to targeted keywords.
2. Make your meta description unique for each webpage.
3. Use most important keywords in webpage name or URL.
4. Use cascading style sheets (CSS) rather then tables.
5. Add H1 tags preferably towards the top of each webpage.
6. Implement breadcrumbs functionality on your website.
7. Analyze your targeted keywords using Google suggest.
8. Implement the sitemap as text links.
9. Put CSS and JavaScript into external file.
10. Describe your images with the use of the alt tags.
11. Make sure your site logo alt tag contains your keywords.
12. Avoid automatic directory submission.
13. Find quality links to your website. Not easy.
14. Don't use same anchor text in all your inbound links.
15. Use deep linking to many webpages on your website.