htaccess help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Horny Guy
    Confirmed User
    • Jan 2002
    • 1677

    #1

    htaccess help

    After bit of help

    Can normaly do this but nothing i have come up with works ...

    redirecting a old site to a new site

    www.oldsite.com to new www.newsite.com

    also need to do all the pages

    www.oldsite.com/Folder to www.newsite.com/Folder
    Great hosting and Lots of Ip's
  • Solace
    So Fucking Banned
    • Nov 2011
    • 995

    #2
    You might want to be more specific as this is currently some mix of 302,404, and or mod redirect...

    Comment

    • Horny Guy
      Confirmed User
      • Jan 2002
      • 1677

      #3
      301 i normaly use


      thanks
      Great hosting and Lots of Ip's

      Comment

      • CYF
        Coupon Guru
        • Mar 2009
        • 10973

        #4
        RedirectPermanent / http://newsite.com
        Webmaster Coupons Coupons and discounts for hosting, domains, SSL Certs, and more!
        AmeriNOC Coupons | Certified Hosting Coupons | Hosting Coupons | Domain Name Coupons

        Comment

        • raymor
          Confirmed User
          • Oct 2002
          • 3745

          #5
          RewriteRule (.*) http://othersite.com/$1
          For historical display only. This information is not current:
          support@bettercgi.com ICQ 7208627
          Strongbox - The next generation in site security
          Throttlebox - The next generation in bandwidth control
          Clonebox - Backup and disaster recovery on steroids

          Comment

          • Horny Guy
            Confirmed User
            • Jan 2002
            • 1677

            #6
            Originally posted by CYF
            RedirectPermanent / http://newsite.com
            done this ...not work ...must be server then im guessing
            Great hosting and Lots of Ip's

            Comment

            • Horny Guy
              Confirmed User
              • Jan 2002
              • 1677

              #7
              Originally posted by raymor
              RewriteRule (.*) http://othersite.com/$1
              thanks will this work for old pages

              to go

              http://othersite.com/travel to http://newsite.com/travel ?
              Great hosting and Lots of Ip's

              Comment

              • raymor
                Confirmed User
                • Oct 2002
                • 3745

                #8
                Originally posted by Horny Guy
                thanks will this work for old pages

                to go

                http://othersite.com/travel to http://newsite.com/travel ?
                Yeah that's the $1 part. $1 represents the path portion of the URL, captured in the parentheses on the left hand side. You may add [QSA] on the end for a query string, the part after the question mark in a URL like search.php?term=rewrite+contributors
                Last edited by raymor; 11-28-2011, 07:23 PM.
                For historical display only. This information is not current:
                support@bettercgi.com ICQ 7208627
                Strongbox - The next generation in site security
                Throttlebox - The next generation in bandwidth control
                Clonebox - Backup and disaster recovery on steroids

                Comment

                • CYF
                  Coupon Guru
                  • Mar 2009
                  • 10973

                  #9
                  Originally posted by Horny Guy
                  done this ...not work ...must be server then im guessing
                  I should have mentioned my solution goes in your apache config and not in your htaccess, sorry about that.
                  Webmaster Coupons Coupons and discounts for hosting, domains, SSL Certs, and more!
                  AmeriNOC Coupons | Certified Hosting Coupons | Hosting Coupons | Domain Name Coupons

                  Comment

                  • Horny Guy
                    Confirmed User
                    • Jan 2002
                    • 1677

                    #10
                    Originally posted by CYF
                    I should have mentioned my solution goes in your apache config and not in your htaccess, sorry about that.
                    no probs will try some of these
                    Great hosting and Lots of Ip's

                    Comment

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

                      #11
                      really? this is just in your htaccess folder... delete everything else out (maybe make a backup htaccess)

                      Options +FollowSymLinks
                      RewriteEngine on
                      RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]
                      Last edited by bean-aid; 11-28-2011, 07:56 PM.

                      Comment

                      Working...