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) ­ 555-1234 Solutions 2: Use inline CSS3 : (570)<span style=”display:none”> </span> 555-1234 Solutions 3: Use WordPress Plugin : Prevent Skype Overwriting
>>read more
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
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
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
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
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
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
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
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
Add IP and Username and Private key Put the keyphrase
>>read more