29 Nov 2013

Two Skype accounts windows 7

To use more than one Skype account on the same computer at the same time, you need to start a new instance of Skype.

Open Run Program

From the Windows taskbar, click Start > Run (or press the Windows The Windows key. and R keys on your keyboard at the same time).
In the Run window, type the following command (including the quotes) and press OK:
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:

Find the Skype.exe file in C:\Program Files\Skype\Phone\ if you’re running a 32-bit operating system.
If you’re running 64-bit operating system, you can find the file in C:\Program Files (x86)\Skype\Phone\.

Right-click the file and select Send to > Desktop (create shortcut).
Locate the shortcut on your desktop, then right-click it and select Properties.
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.
Click OK. You can now start a new instance of Skype every time you double-click the new shortcut.

27 Nov 2013

How to change Wampserver port

How to change Wampserver port ?

>Click on the WAMP server icon
and from the menu under Config Files
>select httpd.conf

>A long text file will open up in notepad.
In this file scroll down to the line that reads
>Find this "Listen 80" and change this to Listen 8080,
>Save the file and close notepad.


>Once again click on the wamp server icon and select restart all services.

>open browser type this URL "localhost:8080"


>your server ready --done.

25 Nov 2013

how to redirect index.php to root using htaccess

# Switch rewrite engine on
RewriteEngine on

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

# Do index.php to root redirect
RewriteCond %{THE_REQUEST} ^[A-Z]+\ /([^/]+/)*index(\.[a-z0-9]+)?[^\ ]*\ HTTP/
RewriteRule ^(([^/]+/)*)index(\.[a-z0-9]+)?$ http://www.samprasanna.com/$1? [R=301,L]

ErrorDocument 404 /404.php

Note: this code comfortable for only php and HTML sites
other CMS .htaccess code it's totally different

Removing file extension
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html
# Replace html with your file extension, eg: php, htm, asp