Hi guys, I need help. i installed wordpress on my main domain which is sgpspclub.com, and i have moved my forum to "sgpspclub.com/forums". can someone give me the rewrite codes for directing non-www -->> domain.com/forums to www.domain.com/forums? Example, when people type domain.com/forums it will direct them to www.domain.com/forums.
RewriteEngine On RewriteCond %{HTTP_HOST} ^yourdomain.com RewriteRule (.*) http://www.yourdomain.com/$1 [R=301,L]
i tried your code on public_html/forums but it direct me to http://www.domain.com//home/psp/public_html/forums any ideas? i have been trying hard to find a code that can help me but so far none..
My main root htaccess is using the codes: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress my public_html/forums is using the below codes: RewriteEngine On RewriteCond %{HTTP_HOST} ^yourdomain.com RewriteRule (.*) http://www.yourdomain.com/$1 [R=301,L]