Domain Manage

redirect question

Discussion in 'Scripts and Coding' started by mally, Jan 5, 2012.

Thread Status:
Not open for further replies.
  1. mally United Kingdom

    mally Well-Known Member

    Joined:
    Mar 2006
    Posts:
    2,244
    Likes Received:
    17
    Hello

    I've transfered my forum from IPB to Vbulletin, and I'm trying to set up my htaccess file however I can't get it to 301 to my new urls.

    I've got a list of old and new, just need to work out what to put in the .htaccess

    Can anyone advise? (the links below are correct just doesn't work lol)

    Example
     
  2. Domain Forum

    Acorn Domains Elite Member

    Joined:
    1999
    Messages:
    Many
    Likes Received:
    Lots
     
  3. dta United Kingdom

    dta Active Member

    Joined:
    Jul 2009
    Posts:
    396
    Likes Received:
    5
    Never done it that way - don't think that could ever work when using parameters (happy to be proven wrong).

    Here's what I do when dealing with parameters (anything after the ?) - use modrewrites and then the type of redirect after in [ ] i.e.

    RewriteRule ^what to redirect$ http://where to go? [L,R=301]
     
  4. mally United Kingdom

    mally Well-Known Member

    Joined:
    Mar 2006
    Posts:
    2,244
    Likes Received:
    17
    Thanks for your help and reply, could you give me an example of the line using my code above please/
     
  5. dta United Kingdom

    dta Active Member

    Joined:
    Jul 2009
    Posts:
    396
    Likes Received:
    5
  6. mally United Kingdom

    mally Well-Known Member

    Joined:
    Mar 2006
    Posts:
    2,244
    Likes Received:
    17
    Thanks again for your help. I tried both versions but still nothing is working (
     
  7. dta United Kingdom

    dta Active Member

    Joined:
    Jul 2009
    Posts:
    396
    Likes Received:
    5
    what happens when you tried the above?

    another way is to do this:
    RewriteCond %{REQUEST_URI} /index.php$
    RewriteCond %{QUERY_STRING} ^showtopic=2$
    RewriteRule ^.*$ http://www.fibro.org.uk/threads/1-Welcome [L,R=301]

    if that still fails you've nearly reached the end of my htaccess knowledge :)
     
  8. mally United Kingdom

    mally Well-Known Member

    Joined:
    Mar 2006
    Posts:
    2,244
    Likes Received:
    17
    this appears to have worked :) :) thanks very much!
     
  9. dta United Kingdom

    dta Active Member

    Joined:
    Jul 2009
    Posts:
    396
    Likes Received:
    5
    no worries - glad i could help you sort it out :)
     
    • Like Like x 1
Thread Status:
Not open for further replies.

Share This Page