Quick htaccess question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • comeplay
    Confirmed User
    • Nov 2004
    • 1435

    #1

    Quick htaccess question

    say I have a script upload files to domain.com/sub/1.jpg how could I allow a direct request to domain.com/1.jpg to work without redirecting?
    Top virtual hosts for under 10$? www.hostmylife.com | icq 50663030
  • fris
    Too lazy to set a custom title
    • Aug 2002
    • 55679

    #2
    this should work

    Code:
    Options +FollowSymLinks
    RewriteEngine On
    RewriteCond %{SCRIPT_FILENAME} !-f
    RewriteCond %{SCRIPT_FILENAME} !-d
    RewriteRule !^sub(/.*)?$ /sub%{REQUEST_URI} [QSA,L]
    Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

    Comment

    • Dappz
      Confirmed User
      • Dec 2009
      • 997

      #3
      thats cool and hot grrrrrrrrrrrrrrrrr


      Hentai Artist * Draw My Anime *
      HentaiLovers * hentaiG4H * ICQ : 657458

      Comment

      • comeplay
        Confirmed User
        • Nov 2004
        • 1435

        #4
        Originally posted by fris
        this should work

        Code:
        Options +FollowSymLinks
        RewriteEngine On
        RewriteCond %{SCRIPT_FILENAME} !-f
        RewriteCond %{SCRIPT_FILENAME} !-d
        RewriteRule !^sub(/.*)?$ /sub%{REQUEST_URI} [QSA,L]
        You're the man!
        Top virtual hosts for under 10$? www.hostmylife.com | icq 50663030

        Comment

        • fris
          Too lazy to set a custom title
          • Aug 2002
          • 55679

          #5
          no problem, glad to help
          Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

          Comment

          Working...