|
إنضمامك إلي منتديات استراحات زايد يحقق لك معرفة كل ماهو جديد في عالم الانترنت ...
انضم الينا
#1
| ||
| ||
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? __DEFINE_LIKE_SHARE__ |
مواقع النشر (المفضلة) |
| |