monetizer expertmobi
Dismiss Notice
Welcome to Our Community
Wanting to join the rest of our members? Feel free to sign up today.

.htaccess 301 redirect question

Discussion in 'Programming and Scripts' started by tb987, Jun 23, 2008.

  1. tb987

    tb987 Affiliate affiliate

    314
    15
    0
    I am moving from one forum system to anther, the import is done and the URL structure is completely different.

    I have 301 redirect for the main entry pages i.e

    Redirect 301 /forum/old.html http ://www.new.com

    I don't have time to do this for every page, so I thought I would add the following to the bottom of the list:

    Redirect 301 /forum/ http ://www.new.com

    The problem is this overrides the individual redirects.

    Is there any way round this?

    Tony
     
    Last edited by a moderator: Jun 26, 2008
  2. monetizer
  3. Bagi Zoltán

    Bagi Zoltán Boss Cart consultant affiliate

    1,974
    47
    0
    If the URL structure will be totally different i believe the best solution would be specifying the custom error page affecting the old URLs with the /new/ folder
     
  4. tb987

    tb987 Affiliate affiliate

    314
    15
    0
    Um not sure what you mean - I just redirected the whole folder in the end - I think the answer was to use conditional rewrite rules which would have been a right pain. Let's see what thes SEs think...
     
  5. Bagi Zoltán

    Bagi Zoltán Boss Cart consultant affiliate

    1,974
    47
    0
    Let me explain. If you had an URL with the old pattern like yourdomain.com/old/showpage?id=5, and now you have this content with the new pattern at yourdomain.com/new/page/5/. If you simply redirect the /old/ folder to the /new/ one the googlebot will get a lot of 404 not found error response, because the webserver won't serve any content for this request yourdomain.com/new/showpage?id=5. This was the reason why i suggest to specify the /new/ folder as the local error page, because that will give a 301 response for the googlebot and let it know that all the relevance and importance of the old URL structure must be passed on to the /new/ folder.
     
  6. OldWelshGuy

    OldWelshGuy Affiliate affiliate

    2,389
    33
    0
    whatever you do DO NOT 301 all the pages to the new domain. you are better off throwing thousands of 404 errors.
     
  7. tb987

    tb987 Affiliate affiliate

    314
    15
    0
    I have done this OWG - it will be interesting to see what happens. I am expecting traffic to drop off for a while, at least I have a decent forum now which is much more user friendly.
     
  8. johnafrankllin

    johnafrankllin Affiliate affiliate

    228
    14
    0
    I think its better to use a 404 error page on old site and redirect it to new one after showing some message like "The Page you are looking has been moved or removed. Browser will redirect you to our new site" or any thing that suites your requirement.
     

Featured Resources (View All)

MI