Anyone know how to do this redirect?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bean-aid
    So Fucking Banned
    • Jun 2011
    • 16493

    #1

    Anyone know how to do this redirect?

    I have redirected a bunch of pages with success using this in htaccess:

    RewriteEngine on
    RewriteRule ^index.php/Section_([0-9]{3,4})$ http://www.website.com/section-$1/ [l]

    However, most of indexed pages in the SE's are

    http://www.website.com/?title=Section_109 (not just /Section_109)

    and need the above URL to go to

    http://www.website.com/section_109 as well.

    Any ideas?
  • mechanicvirus
    Confirmed User
    • Feb 2005
    • 4137

    #2
    I think PBBC's programmer may be able to help you out.
    Click Username > Choose 'User Settings' > Click 'Account' - Scroll down till you see 'Conversation Detail Options' > 'Edit Post Signature'
    ​

    Comment

    • icymelon
      Confirmed User
      • Dec 2007
      • 3220

      #3
      do301 passes link juice
      Network Of Adult Blogs With Hardlink Rentals Available

      Comment

      • bean-aid
        So Fucking Banned
        • Jun 2011
        • 16493

        #4
        Originally posted by mechanicvirus
        I think PBBC's programmer may be able to help you out.
        Got it taken care of

        What was happening was I had about 1K pages indexed all displaying the home page on this site. I've seen it happen before the site gets removed from the SE's if the home page is thought to duplicate, especially that many times. As quickly as 24 hours.

        But host took care of the redirect in 2 hours... all good.

        It was:

        #RewriteRule ^/?title=/(.*) /$1 [L] to remove the ?title= from the URL's which then allowed the other redirect to work.

        Comment

        • borked
          Totally Borked
          • Feb 2005
          • 6284

          #5
          Make sure you use [L,R=301] to indicate a permanent rediret or the SEs wont update their index and penalise you for duplicate content :2cents

          For coding work - hit me up on andy // borkedcoder // com
          (consider figuring out the email as test #1)



          All models are wrong, but some are useful. George E.P. Box. p202

          Comment

          Working...