Results 1 to 2 of 2

Thread: 301

  1. #1
    dmi's Avatar
    dmi
    dmi is offline Net Builder
    Join Date
    Mar 2009
    Location
    N43°54′, E017°40′
    Posts
    242
    Thanks
    141
    Thanked 56 Times in 28 Posts

    301

    Hi,

    Let's say I have a site X.com. Now, on that site there is a forum, which is on a subdomain (forum.x.com). Now, that forum has thousands of pages, but they are all going to be taken down. Is there a way to do a 301 redirect of ALL pages that are under forum.x.com/* ? It would be too much to do it one by one.

    How about the code for redirect everything from x.com/something/* ?

    Thanks in advance,
    dmi

  2. #2
    Will.Spencer's Avatar
    Will.Spencer is offline Retired
    Join Date
    Dec 2008
    Posts
    5,033
    Blog Entries
    1
    Thanks
    1,010
    Thanked 2,329 Times in 1,259 Posts
    I once did something like that with a bit of code like this:
    Code:
    RewriteEngine on
    RewriteRule ^/(.*) http://www.example.com/example.html [R=301]
    Submit Your Webmaster Related Sites to the NB Directory
    I swear, by my life and my love of it, that I will never live for the sake of another man, nor ask another man to live for mine.

  3. Thanked by:

    dmi (16 April, 2009)

Tags for this Thread

Bookmarks

Posting Permissions

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