Results 1 to 2 of 2

In the .htaccess file, what is this code?

This is a discussion on In the .htaccess file, what is this code? within the General Discussion forums, part of the vBSEO SEO Plugin category; Found this in the .htaccess file: #RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com #RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301] What functionality will happen if I add ...

  1. #1
    Junior Member
    Real Name
    Marston
    Join Date
    Oct 2011
    Posts
    15
    Liked
    0 times

    In the .htaccess file, what is this code?

    Found this in the .htaccess file:

    #RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
    #RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301]

    What functionality will happen if I add my domain? And does anything happen if I just leave it like that?

  2. #2
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    read our article about it here:
    [How to] Setup www.yourdomain.com or yourdomain.com (www vs. non-www) - With .htaccess 301 redirects - vBulletin SEO Forums

Similar Threads

  1. Replies: 2
    Last Post: 09-28-2011, 12:01 AM
  2. vBulletin 3.x .htaccess file
    By VIP in forum Troubleshooting
    Replies: 14
    Last Post: 03-24-2010, 04:15 PM
  3. .htaccess file already there
    By Tkmstr1009 in forum URL Rewrite Settings
    Replies: 5
    Last Post: 12-22-2008, 11:19 PM
  4. 3.0 RC 5 htaccess file
    By Richard in forum General Discussion
    Replies: 5
    Last Post: 10-09-2006, 07:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •