need quick htaccess help!


Jun 20, 2009
Reaction score
should take 5 minutes, just need a small tweak to change from a www. to regular http:// let me know! ill pay 5usd
You mean www to non www?

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.domain\.com$ [NC]
RewriteRule ^.*${REQUEST_URI} [R=301,L]

In both cases, make sure to replace "domain" with the URL of your domain.
Do you know how to Ftp? You'll need to edit your .htaccess file and put that at the top of it
i have a site at i setup the blog mistakenly at
im trying to make it
thank you!
Like Nufaman stated above go get a FTP client like Filezilla.

Go to public_html folder of your domain that your trying to change the www to non www

Look for .htaccess file

Open .htaccess to edit file

Place the following code at the beginning of the .htaccess file:

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^ [NC]
RewriteRule ^(.*)$$1 [L,R=301]

Replace with your domain name.

Test your server to see if it works. You might have to restart apache.
Last edited:
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features and essential functions on BlackHatWorld and other forums. These functions are unrelated to ads, such as internal links and images. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock