Last Updated on

.htaccess ফাইল দিয়ে আমরা এসইও এর অনেক কিছু ফিক্স করতে পারি যা অনেকেই জানি না। এই ভিডিও থেকে কিছুটা আইডিয়া পাবেন যে কি কি করতে পারবেন এবং কিভাবে সেগুলো করবেন।

In order to apply various SEO fixes on your website; you may need to edit your htaccess file.

Some htaccess codes for SEO

Non WWW to WWW Version (Force WWW on your domain)

RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com [NC]RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301,NC]

 

WWW to Non-WWW (Force non www version for your domain)

RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.example.com [NC]
RewriteRule ^(.*)$ http://example.com/$1 [L,R=301,NC]

Redirect certain extension (If you change your URL extension from .php to .html)

RewriteEngine On
RewriteCond %{REQUEST_URI} .php$
RewriteRule ^(.*).php$ /$1.htm [R=301,L]

Redirect old domain to a new domain

RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com [NC,OR]
RewriteCond %{HTTP_HOST} ^www.example.com [NC]
RewriteRule ^(.*)$ http://example.net/$1 [L,R=301,NC]

Redirect Old File/Page To New File/Page (Single File)

Redirect 301 /oldfile.htm http://example.net/newfile.htm

In this tutorial you will learn about some popular htaccess hacks for SEO.

Download the htaccess codes here: Click To Download

6 thoughts on “Advanced .htaccess Tutorial for SEO Hacks! – Bangla Video Tut”

  1. Vaiya amar redirect kaj kortace na. redirect korar por amar website kuje pay na. please solution……..

  2. Vaiya ami to domain change korbo na. ai code ta mone hoy .com theke .net a change korar code. ami to www te dekate chai……

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.