I do not want visitors to go to the www part of my site. So when they go to www.forumpromotion.net per say, they are redirected instantaneously to forumpromotion.net
How do I do that?
How do I do that?
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www.domain.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^domain.com$ [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [L,R=301]
Does the same thing; redirect just edits the .htaccess, ie. the exact same thing as my code.khaleel said:Don't you have cpanel
If yes just use the redirect section from there
Yes, I know Cpanel can do that, however I wanted to know how to do it manually that way if something messes up or I don't have cpanel.khaleel said:Don't you have cpanel
If yes just use the redirect section from there
If you do things the easy way then you don't really learn anything 😉khaleel said:I know but it just much more quicker
Since 2007, Forum Promotion has specialized in providing advertising solutions to webmasters looking to promote their communities. We pride ourselves in being the bridge that connects forum administrators, bloggers, and more.
We use essential cookies to make this site work, and optional cookies to enhance your experience.