htaccess question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • en1
    Confirmed User
    • Jun 2004
    • 858

    #1

    htaccess question

    I want to be able to make any destination goto a url

    so if someone requests http://www.blah.com/fasdf/sdafa/sfsa.html(or any other extension) it will goto http://www.blah.com/index.html

    And I want to do it without putting a htaccess in every folder

    I just cant find where to do it...I know there is something I should be searching for I just need pointed in the right direction.

    thanks guys
    skype:wobbbbb aim: wob
  • czarina
    Webmaster Extraordinaire
    • Jul 2002
    • 10752

    #2
    Keep trying you'll get there.

    Comment

    • RogerV10
      Confirmed User
      • May 2006
      • 1000

      #3
      Google querey ".httaccess redirect"

      See how woman just give me their Money! you too can make easy money with GGWCash. join off my sig and get a free GGW Trucker hat or shirt now!
      http://www.ggwcash.com/?wmid=957
      Also when you get a chance check out www.PornoPushers.com

      ICQ: 161759738 AIM:RemoteRoger

      Comment

      • r-c-e
        Confirmed User
        • Jul 2002
        • 1070

        #4
        I guess a quick solution would be to make the target page your 404 page.

        ErrorDocument 404 http://www.site.com/page.html

        Comment

        • Spudstr
          Confirmed User
          • Jan 2003
          • 2321

          #5
          Originally posted by r-c-e
          I guess a quick solution would be to make the target page your 404 page.

          ErrorDocument 404 http://www.site.com/page.html

          put that in your root folder and it will be used in every folder under it.
          Managed Hosting - Colocation - Network Services
          Yellow Fiber Networks
          icq: 19876563

          Comment

          • en1
            Confirmed User
            • Jun 2004
            • 858

            #6
            yea I read up on the redirect code...but it told me to put /directory/file.file goes to /file i want the first variable to be a wild card...so it will do it no matter what the directory is... maybe im missing it in here..ill keep reading up on it
            skype:wobbbbb aim: wob

            Comment

            • en1
              Confirmed User
              • Jun 2004
              • 858

              #7
              Originally posted by r-c-e
              I guess a quick solution would be to make the target page your 404 page.

              ErrorDocument 404 http://www.site.com/page.html

              holy shit was i looking to much into this....that worked perfectly...lol

              thank you very much!!!
              skype:wobbbbb aim: wob

              Comment

              • r-c-e
                Confirmed User
                • Jul 2002
                • 1070

                #8
                Originally posted by en1
                holy shit was i looking to much into this....that worked perfectly...lol

                thank you very much!!!
                No problem, glad I could help

                Comment

                • Love Sex
                  Confirmed User
                  • Nov 2004
                  • 1905

                  #9
                  look up 404 error page and make it in notepade

                  Comment

                  Working...