Need Some htaccess Help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • minusonebit
    So Fucking Banned
    • Feb 2006
    • 7391

    #1

    Need Some htaccess Help

    Ok, so here is the situation.

    I have a blog, at domain.com/blog. A while ago, I registered domain.us that I want to use for the blog and devote the entire site to it. The new blog is up and running so I want to redirect the old one to it. The old one was powered by Blogger, which left hundreds of files on the server.

    I have tried the following (in an htaccess file on the old domain in the blog directory): "redirect / http://www.domain.us

    But this dosent work right. It redirects hits to the index file properly, but if I visit, say domain.com/blog/this_perma_link_or_that_one.htm, it redirects to domain.us/this_perma_link_or_that_one.htm

    How do I just redirect all traffic to a given directory and all directories under it to a specified URL, in this case to the index of domain.us.
  • StickyGreen
    .
    • Oct 2003
    • 13076

    #2
    there are plenty of ways to redirect without using htaccess...
    Refer Cam Girls and Take Home 10% of Everything They Make For Life

    Comment

    • minusonebit
      So Fucking Banned
      • Feb 2006
      • 7391

      #3
      Originally posted by StickyGreen
      there are plenty of ways to redirect without using htaccess...
      Yes, I know about meta refresh, but thats antiquated and I dont want to edit all of the 100s of files that blogger made.

      Comment

      • Cyber Fucker
        Hmm
        • Sep 2005
        • 12642

        #4
        bump for you

        Comment

        • minusonebit
          So Fucking Banned
          • Feb 2006
          • 7391

          #5
          Wow, I am amazed that with all the genius we have floating around here, no one knows anything about .htaccess files? Damn, this industry is losing its edge. LOL

          Comment

          • bobby666
            boots are my religion
            • Nov 2005
            • 21765

            #6
            maybe they are all just fuckin their bitches, as i will do now

            Comment

            • ramstein
              Confirmed User
              • Dec 2006
              • 127

              #7
              Does it help?
              http://www.htaccesstools.com/
              + www.PantyhoseOne.com :: Pantyhose Trade + www.PantyhosedSex.com :: Pantyhose Trade +

              Comment

              • fusionx
                Confirmed User
                • Nov 2003
                • 4618

                #8
                something like

                Code:
                RewriteEngine On
                RewriteCond %{HTTP_HOST} ^olddomain\.com$ [NC]
                RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]

                Comment

                • J.P.
                  Confirmed User
                  • Jun 2004
                  • 689

                  #9
                  The above example redirects all the traffic from one domain to another. As I understand, he wants to redirect /blog/ directory only, am I right?
                  Webmasters! Looking for new affiliate programs to promote?
                  Affiliate Program Search <-- Search for programs with FHGs, RSS feed, specific niche sponsors, ...

                  Comment

                  • fusionx
                    Confirmed User
                    • Nov 2003
                    • 4618

                    #10
                    Put the one I posted in the /blog/directory and it should work as advertised. I haven't had a chane to test it exactly like that.. my server's nic card has been going up and down.

                    Comment

                    • J.P.
                      Confirmed User
                      • Jun 2004
                      • 689

                      #11
                      Oh yes fusionx, you're right. I totally forgot he's talking about .htaccess, I always put all my mod_rewrites inside <VirtualHost>
                      Webmasters! Looking for new affiliate programs to promote?
                      Affiliate Program Search <-- Search for programs with FHGs, RSS feed, specific niche sponsors, ...

                      Comment

                      Working...