Prevent auto skype graphic formating plugin to all phone numbers

Problem: Skype plugin in browser such as Chrome and Firefox auto convert or overwriting phone number in a page. Solutions 1: Use a special character : (570)­ &shy; 555-1234 Solutions 2: Use inline CSS3 : (570)­<span style=”display:none”>&nbsp;</span> 555-1234 Solutions 3: Use WordPress Plugin : Prevent Skype Overwriting

>>read more

How to display all the attached images of the postsWordPress

Problem: How to display all the images you uploaded in the post without putting a shortcodes “[ gallery ]” in the WYSWYG Editor. Software: WordPress 3.3 Solution: 1. Edit your single.php  and add the code anywhere on the loop: <?php echo do_shortcode(‘[ gallery ]‘); ?> Note : “[ gallery ]” has no space. I had [...]

>>read more

How to redirect all 404 page, not found page dead links to your homepage wordpress

Issue: How to redirect all the dead links to your homepage in wordpress. Solutions: 1. Add 404.php in your current template 2. Add the code below: <?php header(“Status: 301 Moved Permanently”); header(“Location:http://www.yoursite.com”); ?> Change yoursite.com with your domain.

>>read more

Add onblur , onfocus attribute in contact form 7 text field

Problem: How to add onblur and onfocus attribute to contact form 7  wordpress plugin text field. Solutions: Add the below code  to line 70 of modules/text.php if ( $value != ” ) { $atts .= ‘ onfocus=”if (this.value == \” . esc_attr( $value ) . ‘\’) {this.value = \’\';}” onblur=”if (this.value == \’\') {this.value = [...]

>>read more

How to redirect /index.html, /index.htm, /index.php to / using .htaccess

Problem: How to redirect your /index.html, /index.htm, /index.php to / using .htaccess  to avoid duplicate of content in SE. Solutions : Add the code below in your htaccess : RewriteCond %{HTTP_HOST} !^www.yoursite.com$ RewriteRule ^(.*)$ http://www.yoursite.com/$1 [R=301] RewriteCond %{THE_REQUEST} ^.*/index.php RewriteRule ^(.*)index.html$ http://www.yoursite.com/$1 [R=301,L] or if you have /index.html RewriteCond %{THE_REQUEST} ^.*/index.html RewriteRule ^(.*)index.html$ http://www.yoursite.com/$1 [R=301,L] [...]

>>read more

Redirect Default.aspx or Default.asp to / in Windows Server to correct duplicate content issue

Issue : Google has indexed both www.mysite.com and www.mysite.com/Default.aspx creating a duplicate content issue.  And redirection using  script in Default.aspx cause an infinitely loops and will not load. Solutions : Add this in your <system.webServer> <rule name=”Default Redirect” stopProcessing=”true”> <match url=”^default\.asp$” /> <action type=”Redirect” url=”/” redirectType=”Permanent” /> </rule> See URL rewrite redirect non-www to www [...]

>>read more

URL rewrite redirect non-www to www domain

Issue:  My client wants to redirect his site to http://www.virtuosomaster.com instead of http://virtuosomaster.com in ASP/IIS Server Solutions: Create a web.config file with the content below: <?xml version=”1.0″ encoding=”UTF-8″?> <configuration> <system.webServer> <rewrite> <rules> <rule name=”Default Redirect” stopProcessing=”true”> <match url=”^default\.asp$” /> <action type=”Redirect” url=”/” redirectType=”Permanent” /> </rule> <rule name=”Redirect inktelligence.co.uk.com to www” patternSyntax=”Wildcard” stopProcessing=”true”> <match url=”*” /> [...]

>>read more

Adding domain on a Bitnami Server

Get the Elastic IP of you EC2 Instances LOgin in your AWS EC2 and click the instance and get the Elastic IP Change A Record in DNS Record Login in Bitnami Server and add your domain in /etc/hosts $ sudo vi /etc/hosts … <NEW_ELASTIC_IP> www.transaffinity.com.au Setup a virtual host to point to your new blog [...]

>>read more

Host your WordPress image in S3 AWS using Amazon S3 Plugin for WordPress by TanTanNoodles

Login in your AWS S3 console and add bucket Make the bucket Public Click the bucket and on Permision Tab click Add Bucket Policy { “Version”: “2008-10-17″, “Id”: “bf37b797-ad4f-4d1c-a6f7-d22865541d8d”, “Statement”: [ { "Sid": "AllowPublicRead", "Effect": "Allow", "Principal": { "AWS": "*" }, "Action": "s3:GetObject", "Resource": "arn:aws:s3:::<--BUCKET NAME-->/*" } ] } Add CNAME images to your domain [...]

>>read more

How to login using WinSCP in Bitnami AWS EC2

Add IP and Username and Private key Put the keyphrase

>>read more
« Newer PostsOlder Posts »