Results 1 to 5 of 5

Req: redirect to subdomain

This is a discussion on Req: redirect to subdomain within the General Discussion forums, part of the vBSEO Google/Yahoo Sitemap category; Hi, May sound stupid but how would i set /forum if accessed by a person or a bot to redirect ...

  1. #1
    Senior Member MentaL's Avatar
    Real Name
    MentaL
    Join Date
    Oct 2005
    Location
    Wales
    Posts
    427
    Liked
    8 times

    Req: redirect to subdomain

    Hi,

    May sound stupid but how would i set /forum if accessed by a person or a bot to redirect to forum.domain instead please?

    Thanks.

    Dan

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    168 times
    Hi Dan,

    just add this to your forum/.htaccess:

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

  3. #3
    Senior Member MentaL's Avatar
    Real Name
    MentaL
    Join Date
    Oct 2005
    Location
    Wales
    Posts
    427
    Liked
    8 times
    i use httpd.conf so shall i just add it there then?

  4. #4
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    168 times
    Put the specified directives after the:

    <Directory /...>
    RewriteEngine on
    Last edited by Oleg Ignatiuk; 01-19-2006 at 01:06 PM.

  5. #5
    Senior Member MentaL's Avatar
    Real Name
    MentaL
    Join Date
    Oct 2005
    Location
    Wales
    Posts
    427
    Liked
    8 times
    Thanks

Similar Threads

  1. Redirect error
    By phkk in forum Troubleshooting
    Replies: 5
    Last Post: 04-17-2006, 02:47 PM
  2. Redirect index.php?blablablabla
    By googledave in forum Custom Rewrite Rules
    Replies: 9
    Last Post: 02-06-2006, 08:45 PM
  3. Best way to redirect when moving URLS?
    By Spitfire in forum General Discussion
    Replies: 1
    Last Post: 11-03-2005, 08:50 AM
  4. Best way to redirect my old forum to vb using 301
    By Bellinis in forum General Discussion
    Replies: 11
    Last Post: 10-29-2005, 09:03 PM
  5. Redirect Question, possibly custom rule
    By Jannefant in forum General Discussion
    Replies: 2
    Last Post: 09-09-2005, 05:50 AM

Posting Permissions

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