![]() |
yourdomain.com/forums to www.yourdomain.com/forums Hi guys, I need help. i installed wordpress on my main domain which is www.yourdomain.com, and i have moved my forum to "/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. My main root htaccess is using the below codes: Code: # BEGIN WordPress RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # END WordPress my public_html/forums htaccess is using the below codes: Code: RewriteEngine On RewriteCond %{HTTP_HOST} ^yourdomain.com RewriteRule (.*) http://www.yourdomain.com/$1 [R=301,L] I also tried the below codes but it dont work at all. Code: RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com RewriteRule (.*) http://www.yourdomain.com/$1 [L,R=301] All the above codes dont work at all. it will direct me to http://www.domain.com//home/psp/public_html/forums any ideas? |
الساعة الآن 07:02 AM |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By
Almuhajir