Anvar Freelance Web Developer

5 ways to hide website’s source code

There is no actual way to hide it. Anything which a browser displays for end-users to view and interact with is accessible by anyone through source code. Server-side rendering of your code via PHP or other server-side language may help to remove from view sensitive code. HTML CSS and JavaScript are client-side languages so the…

Read More »

How to use www in url

A search engine like Google,yahoo,bing would see and as essentially two separate websites. They recommend you pick one version and you can setup it with the help of htaccess Code in the domain’s .htaccess file: RewriteEngine on RewriteCond %{HTTP_HOST} ^ [NC] RewriteRule ^(.*)$$1 [L,R=301,NC]

Read More »

How to redirect website to another url via .htaccess

Redirect individual website address to another one To redirect individual files, like to about-me.html you can use a 301 redirect like this: Redirect 301 /about.html /about-me.html To redirect one specific file to another domain such as to Redirect 301 /oldurl.htm Redirect an old domain to a new domain If you had…

Read More »

How to promote a new blog for free

Are you a beginner to blogging ? here is some tips that’s lead you to be a successful blogger. I found out the following techniques which are legal, free and working. I have gone through and verified each of the following steps and those are working well. Branding your blog 1. Try to brand your…

Read More »

Avoid Google Map iframe zoom in and out of scrolling

You can simply remove the zoom in and out google map by adding an overlay. So you can solve this by putting a div with an .overlay exactly before each gmap iframe insertion, see: <html> <div class=”overlay” onClick=”style.pointerEvents=’none'”></div> <iframe src=”” width=”640″ height=”480″></iframe> </html> In my CSS I created the class: .overlay { background:transparent; position:relative; width:640px;…

Read More »

WordPress anvar

How to write .html in wordpress url

You can write the url by .html extention by simply using the permalink in wordpress admin Step1. Login to wordpress admin Step2. Go to setting section in the admin panel. Step3. Choose the permalink in the setting menu. Step4. In Custom Structure Set the .html and category postname. Step5. Save changes. /%category%/%postname%.html

Read More »