Show title at wordpress more tag

If we use the default wordpress more tag, then all posts will show a link with the word “more”, it is not so good for seo, because all the link words are the same: More, but they link to different pages with different content.

We can modify certain code to inforce wordpress “more” tag, we can add post title with more tag. There are two methods: Continue reading “Show title at wordpress more tag”

How to let non-www redirect to www domain?

Today I installed DEDECMS, a very popular PHP CMS open source system, I found I can not let non-www redirect to www domain. Say my domain is glassespeope.com, then I can not let http://glassespeople.com redirects to http://www.glassespeople.com. I tried to google, and found the following code can resovle the problems:

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

Save the above code in a .htaccess file, and upload this .htaccess to your web hosting root. Everything is OK!

How to use WordPress to design company site?

As we know that WordPress is very powerful, and Google likes it very much. If you can always publish quality contents for some months, I am sure Google will love your blog very much, and Google will index your new articles in minutes. That’s why more and more company come to use WordPress to design their business sites. Continue reading “How to use WordPress to design company site?”

How to Access MySQL Command Line in XAMPP?

MySQL binaries should be under your XAMPP folder. Look for a /bin folder, and you’ll find the mysql.exe client around. Let’s assume it is in e:\xampp\mysql\bin, then you should fireup a command prompt in this folder.

First, go to e:\xampp, and run xampp_start. If you do not run xampp_start first, the error message “Can’t connect to Mysql server on ‘localhost’” will occur when you go to step 2.

Afer you run the commend prompt of DOS, then enter:

cd d:\xampp\mysql\bin
mysql.exe -u root –password

Enter password:
and enter root password

mysql>

After log into your mysql server, and start typing your commands.
Type “quit”  or “exit” to exit mysql
Continue reading “How to Access MySQL Command Line in XAMPP?”