First here’s the reason why you should create a .htaccess on your site(using wordpress script).
Importance:
- .htaccess helps secure your site from hackers. Please refer to this page.
- .htaccess helps in creating an SEO-friendly-URL’s. See below.
I’ve made this tutorial so that everyone that have problems using the mod_rewrite in wordpress or simply changing your permalinks from the default permalinks to custom structure, or the so-called SEO-friendly URL’s. Refer to the image below.

1. First, if you’re using windows operating system such as XP, Windows 7, Vista or even Windows 2000, ME and 98 (Although I think these versions are already phase out). Open your Notepad application.
(Start->All Programs->Accessories->Paint or just simply hit (windows button + r) then type notepad then hit enter.
2. Input these codes, this only applies for PHP server.
# BEGIN WordPress
# END WordPress
Then save it as .htaccess. See image below for more detailed info.

I’ve added some bonus info on where you can use your .htaccess.
SEO TIPS: How to make a redirect from URL’s with “www” to non-www or vice versa.
How to create a 301 redirect using Mod_Rewrite module. (This works only on Linux servers that have Apache Mod-Rewrite moduled enabled)
Scenario A:
If you want your visitors to redirect them if they type without “www”. This technique is Search Engine bots friendly. They will be instructed to indexed your site with “www”. It will prevent bots from indexing duplicate contents.
# BEGIN WordPress
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^seopinoy.com [nc]
rewriterule ^(.*)$ http://www.seopinoy.com/$1 [r=301,nc]
# END WordPress
RewriteEngine on
Scenario B:
In my case (Seopinoy.com) I did a 301 redirect from “www” to non-www URL’s.
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
RewriteEngine on
3. Upload it to your wordpress root folder on your linux server. If you’re still not familiar with root folder, when you login using your ftp account, you can see there the wp-admin, wp-content, wp-includes. I would recommend using Filezilla for newbie in this File management task. I guess we’re done here. More updates will be added if I will received more request.