RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www\.domain\.com)(:80)? [NC]
RewriteRule ^(.*) http://domain.com/$1 [R=301,L]
It’s just a few simple lines just like the above but I’m having a hard time making it right. There are still a lot of things can be done by editing the .htaccess file but I need to find some other way or method so that it can be used easily. I start searching for tools and I found this site.
It’s a simple editor and all you need to do is select the task and fill in the blanks. As soon as you’re done, the required code or script will be created. All you need to do is just copy and paste it to the .htaccess file. It’s as simple as ABC. I don’t have to worry about programming languages. Best of all the instruction and selection comes with few other languages like Chinese, Japanese, English and
If you’re having headache with .htaccess, then you should visit the site. It’s one great site that you’ll love.
No comments:
Post a Comment